Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

extjs grid restore columns (hide / show) ,width,postion

Tags:

grid

extjs

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.

like image 303
veera kishore Avatar asked May 29 '26 15:05

veera kishore


1 Answers

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

like image 190
Özgür Kara Avatar answered Jun 01 '26 05:06

Özgür Kara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!