I have a listgrid with 10 columns. 5 are shown, 5 are hidden.
when a user right clicks on a listGridField header, column header, a menu pops up (a context menu?).
In the menu there are options for:
Sort Ascending
Sort Descending
Configure Sort
Auto Fit All Columns
Auto Fit
Columns ->
Group by <column name>
Freeze <column name>
I only want to allow the user to see the "Columns" option so they can show and hide columns.
So, how do I turn the others off? How do I disable them?
I have tried:
ListGrid lg = new ListGrid();
lg.setFields( listgridfield... );
then lg.getContextMenu() however, this returns null.
I have tried listGrid.getHeaderContextMenu() this returns null as well.
Please give me some direction on how to accomplish my goal.
when a user right clicks on a listGridField header, column header, a menu pops up (a context menu?).
In the menu there are options for:
Sort Ascending
Sort Descending
Configure Sort
Auto Fit All Columns
Auto Fit
Columns ->
Group by <column name>
Freeze <column name>
I only want to allow the user to see the "Columns" option so they can show and hide columns.
So, how do I turn the others off? How do I disable them?
I have tried:
ListGrid lg = new ListGrid();
lg.setFields( listgridfield... );
then lg.getContextMenu() however, this returns null.
I have tried listGrid.getHeaderContextMenu() this returns null as well.
Please give me some direction on how to accomplish my goal.
Comment