grid.getcolumnModel().setHidden(0,true) will be effected for column menu and not grid panel. In column menu u can enable or disable the column. How do we add or remove the column in grid panel dynamically?
There are three ways to remove a column from a grid: Right-click the column header and choose Remove This Column.
I think this is what you are looking for http://www.extjs.com/forum/showthread.php?53009-Adding-removing-fields-and-columns
Make sure you look at post #37 in the thread as well.
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