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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

ejs-treeview with different context menus based on the node type

Thread ID:





143436 Mar 20,2019 09:47 AM UTC Mar 21,2019 12:05 PM UTC ASP.NET Core - EJ 2 1
Tags: TreeMap
John Stephen Mangam
Asked On March 20, 2019 09:52 AM UTC


I have a TreeView in my _Layout.cshtml file that gets data from remote


I'm not able to get the context Menu based on the node type.

Could you please provide an example? 

Christopher Issac Sunder K [Syncfusion]
Replied On March 21, 2019 12:05 PM UTC

Hi John, 

Thank you for contacting Syncfusion support. 

We have prepared sample based on your requirement. In that sample, we rendered treeview in _Layout.cshtml file that gets data from remote as you have mentioned. We have set data-type for each treeview node using htmlAttributes field property. Based on that data-type, we set different context menu for different level. Please find the sample from the following link. 


Please check the sample and let us know if you need any further assistance. 



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon