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

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

    Posted 21 Jun 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top