I want to retrieve RadTreeViewItems from a RadTreeView. i tried the below code in a method,but it is not working.
here 'controlsTree' is the radtreeview and 'item' is the datacontext of that node.
RadTreeViewItem itemss = controlsTree.ItemContainerGenerator.ContainerFromIndex(1) as RadTreeViewItem;
or
RadTreeViewItem itemss = controlsTree.ItemContainerGenerator.ContainerFromItem(item) as RadTreeViewItem;
Is there any other method to do this?
here 'controlsTree' is the radtreeview and 'item' is the datacontext of that node.
RadTreeViewItem itemss = controlsTree.ItemContainerGenerator.ContainerFromIndex(1) as RadTreeViewItem;
or
RadTreeViewItem itemss = controlsTree.ItemContainerGenerator.ContainerFromItem(item) as RadTreeViewItem;
Is there any other method to do this?