This question is locked. New answers and comments are not allowed.
Hello,
i want to programmatically set the selected item in a treelistview. I use a containerbinding like that:
Could you please post some sample code, how to select plus expand a item in a treelistview in mvvm?
Thanks in advance
i want to programmatically set the selected item in a treelistview. I use a containerbinding like that:
<telerik:ContainerBindingCollection x:Key="TreeViewItemContainerBinding"> <telerik:ContainerBinding Binding="{Binding Path=IsActive,Mode=TwoWay}" PropertyName="IsExpanded" /> <telerik:ContainerBinding Binding="{Binding Path=IsActive}" PropertyName="IsSelected" /> </telerik:ContainerBindingCollection>The items are hierachical and therefore i use childtabledefinitions. I calculate the child parents and set them to IsActive = true and then activate the child itself. Unfortunately this doesn't work and nothing is selected.
Could you please post some sample code, how to select plus expand a item in a treelistview in mvvm?
Thanks in advance