PDA

View Full Version : performance issue in IE with BufferView



harimyself_b
12 Aug 2009, 5:20 AM
I am using BufferView to show 1000+ records. It is working fine with firefox but, it is very slow in IE. indeed, it is taking very long time to load new records during scroll.
I think the problem is with using "innerHTML" to load new records. Is IE really causes probelm with "innerHTML"? Can anyone help me with this? Thanks in advance.

qhas
28 Sep 2009, 7:15 AM
I am having this same problem.

Can anyone help?

harimyself_b
28 Sep 2009, 10:14 PM
try overriding this function


getRow : function(row){
if(!this.enableGrouping){
var rs = Ext.grid.GroupingView.superclass.getRows.call(this);
return rs[row];
}
var g, gs = this.getGroups();
for(var i = 0, len = gs.length; i < len; i++){
g = gs[i].childNodes[1].childNodes;
if(g.length <= row) {
row -= g.length;
continue;
}
else
if(row >= 0)
return g[row];
}
}

qhas
29 Sep 2009, 4:25 AM
Why override getRow in the GroupingView? How is that involved?

Ext.ux.grid.BufferView extends Ext.grid.GridView. Do you mean GridView not GroupingView?


try overriding this function


getRow : function(row){
if(!this.enableGrouping){
var rs = Ext.grid.GroupingView.superclass.getRows.call(this);
return rs[row];
}
var g, gs = this.getGroups();
for(var i = 0, len = gs.length; i < len; i++){
g = gs[i].childNodes[1].childNodes;
if(g.length <= row) {
row -= g.length;
continue;
}
else
if(row >= 0)
return g[row];
}
}