PDA

View Full Version : Ext.grid.Column hide() method?



imoise
6 Apr 2010, 3:32 AM
Hi ,
This might be a stupid question, but is there a method something like

Ext.getCmp('placeholder_id').colModel.getColumnAt(0).hide()
?

I am asking this because i need to be able to switch between two columns. Also this
Ext.getCmp('placeholder_id').colModel.getColumnAt(0).hidden=true doesn't seem to be doing anything..

fay
6 Apr 2010, 3:38 AM
See setHidden (http://www.extjs.com/deploy/ext-3.1.1/docs/?class=Ext.grid.ColumnModel&member=setHidden).

imoise
6 Apr 2010, 3:57 AM
That did the trick. I promise I'll be more careful in reading the API next time. Tnx