ExtJS 4 - Never Store Tree Tree Nodes in a Tree Panel

I have a simple Ext.tree.Panel that loads its data from Ext.data.TreeStore using an ajax proxy.

The default behavior for the treenode extension is as follows:

  • if expanded to: from cache
  • if it has not been expanded: retrieving from the server

How to disable caching to never cache (i.e. always fetch from the server)?

+5
source share
1 answer

Put this as a listener in the repository to get the desired behavior:

collapse: function(node){
    node.removeAll();
    node.set("loaded", false);
}
+5
source

All Articles