PDA

View Full Version : Ext JS very slow check/uncheck nodes in tree since 4.2 version



boooch
4 Mar 2014, 7:56 AM
I use cascadeBy function and record.set('checked', checked); to check/uncheck child nodes in Ext JS treepanel.
In 4.0.7 and 4.1 version of EXT JS all works fast. But when I upgrade my project to 4.2 version this operation use more then 4 times more time.


Here is example:


http://jsfiddle.net/CaV3n/1/



checkchange: function (record, checked, opts) {


var i=0;
var start=new Date;
record.cascadeBy(function(e) {


i++;
e.set('checked', checked);
});
var stop = new Date;
alert(i +'items '+ (stop-start)+'ms');


}




if i use version 4.2.0 I have 132 items rendered in 2677ms


if I use version 4.1.0 I have 132 items rendered in 735ms


if I use version 4.1.1 I have 132 items rendered in 645ms


How can I improve treepanel speed ?

boooch
4 Mar 2014, 10:20 AM
http://stackoverflow.com/questions/22176563/ext-js-very-slow-check-uncheck-nodes-in-tree-since-4-2-version