PDA

View Full Version : Ext.Tree.Panel Remove Nodes performance



asti
24 Jul 2012, 2:04 AM
I have 350 items added to a tree node ( node.appendChild(array) ). This was so slow that i had to use Ext.defer to get the GUI responsible.

But now i have to delete all nodes, before appending new ones.

It takes over 10 seconds to remove the nodes with node.removeAll(). How can i improve that?

Thanks for your suggestions.

Farish
24 Jul 2012, 3:53 AM
What if you remove the root node or the first parent node after the root? wouldn't it delete the child nodes also? I havent tried this. Just a guess.

asti
24 Jul 2012, 5:16 AM
Deleting and Recreating the parent node is much butter ( 30 msecs to remove the 350 nodes )
Thanks