RadTreeViewItem Not Selected When A ContextMenu Is Clicked

2 posts, 0 answers
  1. jnh999
    jnh999 avatar
    29 posts
    Member since:
    Apr 2010

    Posted 05 Jan 2011 Link to this post

    I have the following issue.  When a context menu is opened on a RadTreeViewItem, the TreeViewItem is no longer selected.  I need the TreeViewItem keep as selected.   I guess to keep the TreeViewItem selected, user needs to click the mouse left button, but when a context menu is clicked, it is normally the mouse right button.  Since this is a common scenario, I would assume a solution is already somewhere.  Can anybody point me to a solution? Thanks.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 07 Jan 2011 Link to this post

    Hello jnh999,

    You can see an implementation of a RadTreeView with ContextMenu in this demo. When the ContextMenu is opened the clicked item is added to the RadTreeView SelectedItems colelction so that it can be furter controlled by the ContextMenu items.

    Have a look at the demo and let us know if you need more info.

    All the best,
    Tina Stancheva
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
Back to Top