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

Hi,

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? 

1 Reply

CI Christopher Issac Sunder K Syncfusion Team 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. 


Documentation: 

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

Thanks,
Christo 


Loader.
Up arrow icon