We have a treeView with data populated programmatically using:
Now we would like to select item from different "external" events on this way:
Actually the rtvi object seems to be found and correct....but we don't see any changes on the controls.
Any way to do it with that approach?
Thanxs.
Alex
ObservableCollection<MyInterface> items = new ObservableCollection<MyInterface>(); |
this.myTreeView.ItemsSource = items; |
RadTreeViewItem rtvi = this.myTreeView.ContainerFromItemRecursive(currentItem); |
rtvi.IsSelected = true; |
Any way to do it with that approach?
Thanxs.
Alex