I define a grid that has selModel .
Each time the storage loads, the grid columns are dynamically reconfigured using Reconfigure grids. However, when I do this, selModel disappear.
How can I reconfigure the grid columns to enable selModel as well.
The following is sample code:
//The Selection Model for the grid. var sm = new Ext.selection.CheckboxModel(); //The Grid var grid = new Ext.grid.Panel({ store: store, selModel: sm, columns:[{ header: 'Loading ...' }] }); //The store on load event where the columns are reconfigured store.on('load', function(store){ var columns = store.data.Data.items; grid.reconfigure(store, columns); }, this);
In ExtJs3, I can specify selModel as the column itself, but this does not apply to ExtJs4. So, how can I guarantee that selModel is always visible even after reconfiguring the grid columns?
javascript extjs extjs4
shane87
source share