PDA

View Full Version : Help on headercontextmenu event



Air_Mike
8 Feb 2008, 5:21 AM
Hi,

there is documented grids event function called headercontextmenu that is fired when a header is right clicked. OK, after that it shows menu in which you can choose what column to show or hide.

Now, I'm interested how can I catch event when someone in that menu choose to hide or show column. I want to catch that event so I can write in cookie what columns user chooses to see, so on next view of the grid I can show that columns.

Please help...

Thank You...

fay
8 Feb 2008, 10:37 AM
Think you're looking for the ColumnModel's hiddenchange (http://extjs.com/deploy/ext/docs/output/Ext.grid.ColumnModel.html#event-hiddenchange) event which fires when a column is hidden or shown.

Air_Mike
8 Feb 2008, 2:09 PM
Thank You, I think this will help and it is just what I was looking for...