View Full Version : Tree refresh/repaint

18 Mar 2011, 9:34 AM

i want to repaint my TreeGrid with new nodes. How do it work? I can change my store. But how can I also change tree view? With tree.getTreeView().refresh() it works not correct. I get the tree view with new nodes, but amount of nodes is 2 times more.

Thank you in advance.
Best Regards.

7 Apr 2011, 7:05 AM
If you are using Ext.ux.tree.TreeGrid you can do the following:

tree.loader.load(NodeWasChanged.parentNode); // to reload only the branch with changed node
tree.loader.load(tree.root); // to reload all tree.

Unfortunately it doesn't open previously opened branches, that's why you have to save what branches were opened and open them one by one