Edit this page

Bind to a Selected Item

RadTreeView exposes SelectedItem property, which is a DependencyProperty and can be used in a data binding.

<telerik:RadTreeView SelectedItem="{Binding SelectedItem, Mode=TwoWay}"/>

If you want to bind to the RadTreeViewItem's IsSelected property when your treeview is data bound to an object, then you need to use an ItemContainerStyle.

        <Style TargetType="telerik:RadTreeViewItem">
            <Setter Property="IsSelected" Value="{Binding Path=Select, Mode=TwoWay}" />
        </Style >

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article