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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Context Menu Problem on TreeView Node

Thread ID:





108617 May 2,2013 11:35 AM UTC May 10,2013 01:28 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Asked On May 2, 2013 11:35 AM UTC

How to add Context Menu on Dynamically created Node in TreeView ? And How to trigger event in context Menu ? Please Help me....

Varalakshmi R.S [Syncfusion]
Replied On May 10, 2013 01:28 PM UTC

Hi Praful,


Thanks for contacting Syncfusion forums.


We suggest you to create MenuModel using properties model and assign the dynamically  created node id in “ContextMenuTargetId” of MenuModel. Please refer the below given code snippet,



public ActionResult Index()


            MenuModel myModel = new MenuModel();

            myModel.Mode = MenuModel.ModeType.ContextMenu;

            myModel.ContextMenuTargetId = "treeview node id";

            ViewData["myMenuModel"] = myModel;

            return View();



You may also refer the below given link for more details regarding this requirement,




kindly let us know if you have any other queries.





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