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?
A:
Check this example: http://www.extjs.com/deploy/dev/examples/restful/restful.html
Natkeeran
2010-05-05 18:50:19
A:
You may have to refresh the Ext.grid.GridView in order for the column change to show.
grid.getView().refresh(true) // true to refresh HeadersToo
Ballsacian1
2010-05-05 20:13:58
A:
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.
SBUJOLD
2010-05-06 14:09:27