Posts

Showing posts from May, 2013

WPF Telerik RadTreeView Select Node on right click

In an application that we are working on, we want to select the Telerik RadTreeViewItem node the user is right clicking on and display context menu for the selected node. This is not supported out of the box by Telerik, so I wrote an attached property to accomplish this. Please take a look at the code snippet below. Full Visual Studio 2010 solution is also uploaded on my google drive here . < Window  x : Class = "RadTreeViewExtensions.MainWindow"            xmlns = "http://schemas.microsoft.com/winfx/2006/xaml/presentation"          xmlns : x = "http://schemas.microsoft.com/winfx/2006/xaml"          xmlns : Telerik = "http://schemas.telerik.com/2008/xaml/presentation"          xmlns : RadTreeViewExtensions = "clr-namespace:RadTreeViewExtensions"          Title = "Telerik RadTreeView Behavior: Select Node on right click "            Height = "350"  Width = "525" >      < Grid >