The DevExpress ASP.NET MVC Grid View context menu is a popup menu displayed when an end-user right-clicks a grid element. The GridView extension provides different context menu types for the following elements: row, column header, footer, group footer, and group panel. You can specify the visibility of all context menu types using the SettingsContextMenu.Enabled property. To control the menu visibility for a particular element, use the following properties.
- SettingsContextMenu.EnableRowMenu - controls the visibility of a row context menu.
- SettingsContextMenu.EnableColumnMenu - controls the visibility of a column header context menu.
- SettingsContextMenu.EnableFooterMenu - controls the visibility of a footer context menu.
- SettingsContextMenu.EnableGroupFooterMenu - controls the visibility of a group footer context menu. (new in version 16.1)
- SettingsContextMenu.EnableGroupPanelMenu - controls the visibility of a group panel context menu.
By default, GridView provides a set of context menu items for every menu type. You can customize the default items or add your own custom items. At runtime, you can use the ContextMenuInitialize property to process the customization of default menu items and creation of custom items.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGridViewDemos |