Mar 29, 2011, 7:20 PM
[CLOSED] grid.view.refreshRow calls grid.view.refresh(false) - HUGE PERF ISSUE
refreshRow : function (record) {
Ext.ux.grid.LockingGridView.superclass.refreshRow.call(this, record);
var index = Ext.isNumber(record) ? record : this.ds.indexOf(record);
this.getLockedRow(index).rowIndex = index;
//need to check after 3.3.0 release - http://forums.ext.net/showthread.php?9174-1.0-Locking-gridview-refreshRow-method-broken
this.grid.view.refresh(false);
}
I have a grid with 200 items with a menu command column. The menu contains 10 items. When I do a refreshRow, it ends up calling entire refresh on the whole grid which destroys and recreates those 200 toolbars all over again. IE7 will complain about long running script. This wasn't the case before v1.0, and now we are getting tons of perf complaints about our app. The main section of our app is this grid. All I need is to update the cell value of a row. Can I do that without grid.view.refreshRow and without grid.view.refresh? Also, is there a way to delay the rendering of those toolbars or share toolbars? Because right now, 200 toolbars X 10 subitems is a huge perf issue given the new slow way of toolbar rendering in ExtJS 3.3.
Last edited by Daniil; Mar 29, 2011 at 10:54 PM.
Reason: [CLOSED]