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

RadTreeViewItem Not Selected When A ContextMenu Is Clicked

1 Answer 80 Views
Menu
This is a migrated thread and some comments may be shown as answers.
jnh999
Top achievements
Rank 1
jnh999 asked on 05 Jan 2011, 06:06 PM
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.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Jan 2011, 10:25 AM
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
Tags
Menu
Asked by
jnh999
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or