I am defining a grid which has a selModel.
Each time the store loads, the grids columns are dynamically reconfigured using the grids Reconfigure method.
However when I do this the grids selModel disappears.
How can I reconfigure the grids columns to also include the selModel.
Below is some example 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 could specify the selModel as a column itself but this is not the case in ExtJs4. So how can I ensure the selModel is always visible even after reconfiguring the grids columns?
It’s a bug which is reported in Extjs version [4.0.2]. Now, it has resolved in Extjs version [4.0.7].