This is a migrated thread and some comments may be shown as answers.

Expand, Select, BringIntoView with Load On Demand and Virtualization

1 Answer 103 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 21 Sep 2010, 04:39 AM
Hi all, I've got a tree view that I'm loading on demand.  I've the expand, select, and BringIntoView working as outlined in this tutorial: http://www.telerik.com/help/wpf/radtreeview-howto-exapand-select-item-with-lod-enabled-treeview.html.  Now however, I'm finding a tree node can potentially have thousands of children.  I need to turn on virtualization to improve performance.  With virtualization on though, my expand, select, and BringIntoView does not work anymore.  itemsControl.ItemContainerGenerator.ContainerFromIndex
 will sometimes return null.  Any tips on how to get this to work? 
.  

1 Answer, 1 is accepted

Sort by
0
Viktor Tsvetkov
Telerik team
answered on 24 Sep 2010, 09:37 AM
Hello Jay,

Since you have virtualization you can try using the ExapandItemByPath and GetItemByPath methods.

Best wishes,
Viktor Tsvetkov
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? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
Jay
Top achievements
Rank 1
Answers by
Viktor Tsvetkov
Telerik team
Share this question
or