View Full Version : Performance problem with grid reconfigure

31 Oct 2007, 6:15 PM
I have a grid whose columnset changes depending on the view a user selects. For this, I'm handling the grid's metachange event. Within this event I call the reconfigure method to apply the new store and column model. When I call this method, the browser locks up and will take anywhere from 3-9 seconds to complete before the browser becomes responsive again. Grid and metachange code listed below. The columnset can contain anywhere between 15-25 columns and the datastore can contain up to 50 rows.

Has anyone experienced the same? Am I better off just creating a new grid every time the view changes? Are there too many columns for the grid to deal with in a performant way?

var selectionModel = new checkBoxRowSelectionModel();

listView = new Ext.grid.Grid('grid', {
ds: gridDS,
cm: cm,
loadMask: true,
selModel: selectionModel

function onMetaChange(dataStore, metaData) {
var colModel = new Ext.grid.ColumnModel(metaData.columnModel);
colModel.defaultSortable = true;
var lv = Ext.getCmp("grid");
if (lv) {
var paging = Ext.getCmp("gridPager");
lv.reconfigure(dataStore, colModel);

I'm currently using ext 1.1.1. Any guidance on how to make this perform better would be greatly appreciated.


20 Nov 2007, 11:39 AM
Linking threads together : http://extjs.com/forum/showthread.php?p=89285#post89285

I don't encounter any performance problems with 2.0RC1