We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to add custom context menu items in TreeGrid

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.

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 - Event for binding actions to the custom 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:

Screen shots:

C:\Users\Jonesherine.Stephen\Desktop\Capture.PNG

 

Sample link:

A sample to render the custom context menu items in TreeGrid is available in the following link,

Sample

 

 

 

 

 

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7023 07/29/2016 07/29/2016 JavaScript ejTreeGrid
Did you find this information helpful?
Comments
Charles Dan Nov 19, 2016

You’ve written nice post, I am gonna bookmark this page, thanks for info. mp3 juices I actually appreciate your own position and I will be sure to come back here. 

Reply
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.