5

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

The default behavior when expanding a treenode seems to be:

  • if expanded before: retrieve from cache
  • if never expanded: retrieve from server

How can I turn off the caching option, so that it never caches (i.e. always retrieve from server)?

Reimius
  • 5,694
  • 5
  • 24
  • 42
Zurb
  • 738
  • 1
  • 5
  • 18

1 Answers1

6

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

collapse: function(node){
    node.removeAll();
    node.set("loaded", false);
}
Reimius
  • 5,694
  • 5
  • 24
  • 42