Hello Tzach Kaufmann,
You can do that by handling the NodeMouseDown event of RadTreeView:
| void radTreeView1_NodeMouseDown(object sender, RadTreeViewMouseEventArgs e) |
| { |
| if (e.OriginalEventArgs.Button == MouseButtons.Right) |
| { |
| this.radTreeView1.SelectedNode = e.Node; |
| } |
| } |
However, if you want this because of the context menu, you can also take a look at the
ContextMenuShowing event of RadTreeView.
Best wishes,
Jordan
the Telerik team
Check out
Telerik Trainer, the state of the art learning tool for Telerik products.