I want to reset the grid columns (hide / show) ,width,postions without reload the page . I am trying this
Ext.getCmp('inventoryResultGrid').applyState(firstState);
but it only working for positions.
Try reconfigure method like this.
var grid = Ext.getCmp('inventoryResultGrid');
grid.reconfigure(grid.store, grid.initialConfig.columns);
You can find documentation here http://docs.sencha.com/ext-js/4-1/#!/api/Ext.grid.Panel-method-reconfigure
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With