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,
<code>
[Controller]
public
ActionResult Index()
{
MenuModel myModel = new
MenuModel();
myModel.Mode = MenuModel.ModeType.ContextMenu;
myModel.ContextMenuTargetId = "treeview node
id";
ViewData["myMenuModel"] = myModel;
return View();
}
</code>
You may also refer the below given link for more details regarding
this requirement,
http://help.syncfusion.com/ug/asp.net%20mvc/tools/documents/contextmenumode.htm
http://mvc.syncfusion.com/demos/ui/tools/Menu/ContextMenu
kindly let us know if you have any other queries.
Regards,
Varalakshmi