This is a migrated thread and some comments may be shown as answers.

Multiple RadTreeViewContextMenus - check which was selected

1 Answer 46 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
orim
Top achievements
Rank 1
orim asked on 19 Jun 2013, 01:17 PM
Hi,
is there a way to check which RadTreeviewContextMenu was selected. (Server Side)
I have 3 contextmenus

1 Answer, 1 is accepted

Sort by
0
Accepted
Kate
Telerik team
answered on 21 Jun 2013, 02:53 PM
Hi,

You can get the the desired effect by using the OnContextMenuItemClick server-side event of the RadTreeView.  In the event, you can get a reference to the parent element of the clicked item by using the code below:
protected void WebMenuTreeView_ContextMenuItemClick(object sender, RadTreeViewContextMenuEventArgs e)
   {
      var item1 = e.MenuItem.Parent.ClientID;
   }


Regards,
Kate
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
TreeView
Asked by
orim
Top achievements
Rank 1
Answers by
Kate
Telerik team
Share this question
or