PDA

View Full Version : Hidding columns in context menu of header



PallMallshow
6 May 2014, 3:37 AM
Hi all,

For beginning, I'm french, and I try to be the best in English, but I certainly makes errors.

So, I have a Grid Panel like this : http://nsa33.casimages.com/img/2014/05/06/140506014154600568.png

I have two columns hidden, with the property
hidden : true.

But, I would like to hide completely this columns. Whatever , they are visible here :
http://nsa33.casimages.com/img/2014/05/06/140506014407876580.png

That is possible to hide columns name here ?

Tank you for you're help,
Best regards,

PallMallshow

Gary Schlosberg
9 May 2014, 6:05 AM
So you want the columns present in the grid, but hidden from view and not visible in the column header menu item 'Columns'. The enableColumnHide removes the entire 'Columns' menu item. Will that work for you?
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.header.Container-cfg-enableColumnHide

jsakalos
9 May 2014, 11:21 PM
I wonder why would you need columns in the grid that are never shown and there is no option to show them. The better would be to not configure them in grid columns:[] at all - data is still in the underlying store so you can access it behind the scenes.