The DevExpress ASP.NET MVC Gantt (GanttExtension) extension allows you to create a custom (ContextMenu) or customize its built-in context menu (ContextMenuCustomization) as needed. Use the ContextMenuCustomization event handler to manage individual context menu items (e.MenuItems) or prevent the display of the context menu (e.Cancel) itself.
A context menu item is an instance of the ASPxClientGanttContextMenuItem class. You can specify its text (text) and name (name), and then handle its click (commandName) within the CustomCommand event.
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).
The source code files for this demo are installed (by default) in the following directory:
Open CS Solution
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxGanttDemos