17 Sep 2010 4:39 PM #1
GXT Grid - How can i hide the grid column from the Header Menu columns drop down
How can i hide the grid column from the Header columns menu item?
colconfig.setHidden(true) hides col from the grid but it is visible when user views the Header - columns menu item,
is it possible to hide the column from the grid & as well the column menu?
17 Sep 2010 8:01 PM #2
You need to remove the column from the ColumnModel/create a new one without this column and than reconfigure your grid.
18 Sep 2010 8:00 AM #3
If i remove the column from the columnModel, then i will never be able to access that column field via grid.getFields();
I have a compare functionality, on compare, I read all the grid fields and for each field name/id, I fetch the value from store map properties.
18 Sep 2010 9:12 AM #4
In ExtJs this can be achieved with something like this :
column.setHidden(true) // hide the column from the grid column.setHideable(false) // this ensures the the user cannot toggle hide/show on the column with the header menus
8 Aug 2012 12:11 AM #5
Can be achieved simply by setting the columnHeader of the columnconfig object in question, to either null or empty string "".
By slobo in forum Ext 2.x: BugsReplies: 6Last Post: 14 Jul 2011, 1:24 AM
By shiv in forum Ext 3.x: Help & DiscussionReplies: 5Last Post: 24 Jul 2010, 10:06 AM
By han_999 in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 25 Dec 2008, 1:39 AM
By NegrilLover in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 26 Jun 2008, 5:38 PM
By ectalk in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 6 Oct 2007, 8:46 PM