Dec 29, 2014, 9:58 AM
[CLOSED] Problem with reload of root
Hi,
I'm use TreePanel, TreeStore, AjaxProxy - Ext.NET.2.5.2.
At start reload of child nodes work correctly - store.getNodeById(222).reload()
When call store.getRootNode().reload() child nodes broken and store.getNodeById(222).reload() not work
And I'm found problem in stores of child node. store.getNodeById(222).stores have 2 stores. When i call reload of root it order changed. And now i fix this on load of store handler:
I'm use TreePanel, TreeStore, AjaxProxy - Ext.NET.2.5.2.
At start reload of child nodes work correctly - store.getNodeById(222).reload()
When call store.getRootNode().reload() child nodes broken and store.getNodeById(222).reload() not work
And I'm found problem in stores of child node. store.getNodeById(222).stores have 2 stores. When i call reload of root it order changed. And now i fix this on load of store handler:
for (var i = 0; i < records.length; i++) {
var tempStore = records[i].stores[0];
if (tempStore.treeStore != null) {
records[i].stores[0] = records[i].stores[1];
records[i].stores[1] = tempStore;
records[i].store = records[i].stores[0];
}
}
after this reload work correctly
Last edited by Daniil; Feb 17, 2015 at 11:33 AM.
Reason: Please use [CODE] tags, [CLOSED]