• Material 3
  • Material 3 Dark
  • Fluent
  • Fluent Dark
  • Bootstrap v5
  • Bootstrap v5 Dark
  • Tailwind CSS
  • Tailwind CSS Dark
  • Material
  • Bootstrap v4
  • High Contrast
Theme Selection
Mode Selection
*Translated by Google Translator.

Example of Custom Context Menu in ASP.NET MVC Tree Grid Control

This sample demonstrates the usage of custom context menu in Tree Grid component. Right click anywhere on a parent row in the TreeGrid to view custom context menu.


Tree Grid has an option to show the custom context menu when right click on it. To configure the custom items in context menu, you should define custom item in ContextMenuItems. In this demo, Custom Context Menu feature has enabled by defining the custom context menu Expand the Row and Collapse the Row for the parent nodes in ContextMenuItems property.

More information on the ContextMenu can be found in this documentation section.