View Full Version : Disable/Hide a grid column's "Show in Groups" menu item?

14 Aug 2014, 10:47 PM
I have a grid grouped by a field that is not displayed as a column (using feature ftype: 'groupingsummary'). I do not want the user to ever change the grouping or ungroup the display totally.

I can stop the user changing the grouping using the "groupable" property - but I can't see an obvious way to prevent them from clicking/seeing the "Show in groups" in the column drop-down. If they click that then the grouping goes away.

Is there some switch somewhere that I can use, or do I need to go through each column menu and disable/remove it?

Many thanks,

16 Aug 2014, 6:52 AM
Why not just disable the column menu altogether?

on column config:

menuDisabled : true

The can sort by just selecting the column header.

16 Aug 2014, 8:06 AM
Perfect - I did not know that was do-able while still retaining the sort!Thanks chamacs!Neil