method searches recursively in the tree to get an item container (RadTreeViewItem
) for a particular data item. Since the item containers will not be generated until needed (until visible), you will have to handle the ItemContainerGenerator
event and be notified when they are generated.
sender, EventArgs e)
(myTreeView.ItemContainerGenerator.Status == GeneratorStatus.ContainersGenerated)
//the custom logic goes here
RadTreeViewItem rtvi =
I modified the example accordingly. Please take a look at it and let me know if it works for you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.