We are using RadTreeview in our application. We are using MVVM. I have an issue in selecting the item using code from my viewmodel. Please see below for my code in view.
<telerik:RadTreeView ItemsSource="{Binding ReportRoots}"
SelectionMode="Extended"
IsEditable="False"
Grid.Row="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
x:Name="rtvReportRoots"
SelectedItem="{Binding SelectedReportRoot, Mode=TwoWay}">
<telerik:RadTreeView.ItemTemplate>
<telerik:HierarchicalDataTemplate ItemsSource="{Binding Children}"
DataType="ViewModels:ReportRootEntityViewModel">
<Grid x:Name="NodeContainer">
<TextBlock Text="{Binding Path=Name}"
Foreground="Gray"/>
</Grid>
</telerik:HierarchicalDataTemplate>
</telerik:RadTreeView.ItemTemplate>
</telerik:RadTreeView>
In my viewmodel, at some point I am assigning SelectedReportRoot = reportRoot.
At this point, I want to expand treeview , drill down, select a particular item, and move the selected item into view.
I tried a lot but of no use. Any help is greatly appreciated
With Regards,
Gopala Chintakindi
Extension : 8618