2X faster development
The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
It is possible to include a custom menu item in TreeGrid context menu by using “ContextMenuOpen” client side event. And this event will be triggered only on enabling the context menu using “ContextMenuSettings.ShowContextMenu” property. The below properties are used to include a custom menu item, headerText - Text to be displayed for the custom menu item menuId - Provides ID field for the created DOM element for custom menu item iconPath - Image location for menu item eventHandler - Client side event for menu item click iconClass - CSS class for menu item’s icon parentMenuId - Parent menu ID for displaying the custom menu item as sub item disable - To enable/disable the custom menu item
The below code example explains about how to include custom menu item in TreeGrid.
The below screenshots shows the output of above code snippets.
Sample linkPlease find our online demo sample for further reference
|
2X faster development
The ultimate ASP.NET Web Forms UI toolkit to boost your development speed.
This page will automatically be redirected to the sign-in page in 10 seconds.