Note that when you select an item programmatically and this item haven't been expanded yet, the tree won't scroll to it. This is because the item's container is not yet generated. In order to scroll to the selected item you can use the SelectItemByPath()
methods of the RadTreeView.
To use this approach basically you will need to add a string property in your business object that holds the path to the element.
Then set the TextSearch.TextPath
attached property on the treeview. The value of the attached property should be set to the name of the property that is used for constructing the path.
Here is an example with the SelectItemByPath():
var vm =
MyDataItem item = vm.Items.First().Children;
var path = item.Path;
For your convenience I attached a sample project with the described approach. Please let me know if it works for you.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.