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

Context Menu Problem on TreeView Node

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

1 Reply

VR Varalakshmi R.S Syncfusion Team 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.




Live Chat Icon For mobile
Up arrow icon