View Full Version : Add menu item to grid hd menu

15 Nov 2011, 1:17 AM
Hi all,

what I would like to do is add a menu item to a grids hd menu. This is not a big thing at all, I can do it with the following lines of code

'afterrender': function() {
text: 'my menu item',
disabled: true,
handler: function() {}});

But what I don't know is how I can control via a flag in grids meta data (I use metagrid plugin) which columns have this menu item enabled and which disabled or hidden.

Are there any code examples how to enable/disable or hide menu items in grids hd menu for some columns? I couldn't find any but I saw in Ext.ux.grid.GridFilters that this is possible even though I couldn't get how they do it.

Thank you! I'm looking forward for your answers.

Kind regards, Dirk

18 Nov 2011, 1:31 PM
Look at how the filters add menu items to only certain columns.