PDA

View Full Version : GridPanel Column Command?



peter.campbell
Apr 08, 2011, 8:18 AM
Hi,

Is it possible to have either;

o A context menu appear when right-clicking on a column header
or
o A new command added to the current column dropdown (the one that shows sort ascending, and column hiding)
or
o Override the default sort functionality when you left-click a column header, and do something else



I need this type of behaviour as I have a requirement to allow a user to choose a specific column against which an action is performed on the underlying data.

Cheers.

peter.campbell
Apr 08, 2011, 9:13 AM
Can mark this as solved. I set the ContextMenuId on the individual columns, then added a HeaderContextMenu handler.



ContextMenuID = "ColumnContextMenu"