Hello Sravan Kumar Uddarraju,
The way to get the index of the TreeViewItem that you have just expanded is to handle one of the events: RadTreeView.Expanded (for all treeViewItems) or RadTreeViewItem.Expanded (for a particular one). It should be something like this:
sender ,Telerik.Windows.RadRoutedEventArgs e)
RadTreeViewItem currentExpanded = e.OriginalSource
index = currentExpanded.Index;
//Do your index logic here...
You may also find it useful to know that you can detect the Initially checked TreeViewItem
when the tree is in tristate
In this case you can handle the Checked
event of the TreeViewitem
and use the IsUserInitiated
Hope this helps you . Please let us know if we can further assist 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