PDA

View Full Version : Disable context menu on grid grouped columns



yleguern
29 Aug 2008, 7:23 AM
Hello,

Is there a way to hide the context menu when you click on the title of grouped rows of a grid (with a GroupingView) ?
A nice feature would be to have another context menu for thoses rows.

Thanks,
Yann.

gslender
30 Aug 2008, 5:06 AM
see ColumnConfig.setMenuDisabled(boolean menuDisabled)

yleguern
30 Aug 2008, 5:36 AM
Thanks for your help gslender but "ColumnConfig.setMenuDisabled(boolean menuDisabled)" disable the header menu and not the menu which popup when you right click on a row.

For example I would like to disable the menu when you click on the "Industry : Computers (5 items)" (see image below) :

http://img292.imageshack.us/img292/3316/gridja8.th.gif (http://img292.imageshack.us/my.php?image=gridja8.gif)


Unfortunatly I guess my request is impossible because the menu appears even if you right click outside the rows.
Thanks anyway...