PDA

View Full Version : Why the tree panel expand all nodes very slow in the IE



Fent2
25 Nov 2015, 3:54 AM
Hi,all
I use treepanel to show a tree ,it have three level and about 300 nodes, it very slow when i use expandAll() to expand all nodes in the IE,but is very quickly in the chrome.
somebody know why or how to config the treepanel?ths
my Extjs version is 4.2.1

Fent2
25 Nov 2015, 4:55 PM
I use like this
var tree_panel = Ext.getCmp('my_tree_view'); //my_tree_view is a treepanel view
Ext.suspendLayouts();
tree_panel.expandAll();
Ext.resumeLayouts(false);

Gary Schlosberg
1 Dec 2015, 12:14 PM
Hopefully that helped? Suspending layouts can be a good way to improve performance. Which version of IE?

Fent2
2 Dec 2015, 6:55 PM
Hopefully that helped? Suspending layouts can be a good way to improve performance. Which version of IE?
I try in IE8 and IE11 ,expand all use about 15 seconds,
and in Ie6 ,it about 30 seconds,

but the same code ,in Chrome ,about 5 seconds;
this is my code
https://fiddle.sencha.com/#fiddle/1209

Gary Schlosberg
3 Dec 2015, 8:55 AM
I tried your code using IE6 but it doesn't display the tree at all, and results in an error "Object doesn't support this type of property or method". I tried outside of Fiddle as well.

With IE8, the tree expands in about 5 seconds for me. Considering that IE 8 is not known to be the most performant browser, it may prove a bit difficult to improve on that.