Multiple RadTreeViewContextMenus - check which was selected

2 posts, 1 answers
  1. orim
    orim avatar
    29 posts
    Member since:
    Mar 2012

    Posted 19 Jun 2013 Link to this post

    is there a way to check which RadTreeviewContextMenu was selected. (Server Side)
    I have 3 contextmenus
  2. Answer
    Kate avatar
    1898 posts

    Posted 21 Jun 2013 Link to this post


    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;

    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.
Back to Top