Expand, Select, BringIntoView with Load On Demand and Virtualization

2 posts, 0 answers
  1. Jay
    Jay avatar
    1 posts
    Member since:
    Sep 2008

    Posted 20 Sep 2010 Link to this post

    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? 
  2. Viktor Tsvetkov
    Viktor Tsvetkov avatar
    382 posts

    Posted 24 Sep 2010 Link to this post

    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
Back to Top