Large Hierarchy Slow to Expand

4 posts, 0 answers
  1. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 10 Jun 2010 Link to this post

    I have a TreeListView with a large number of nodes (800+) nested 3 or 5 deep.  When I call the ExpandAll method of the TreeListView the expansion can take several minutes.  I there a way to cause the items of the TreeListView to be built during idle time?
  2. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 15 Jun 2010 Link to this post

    Hello John,

    We have just released a beta version of our new TreeListView control based on GridView. It contains significant performance improvements over the its predecessor, which was based on our TreeView implementation. Can you please upgrade your project to use the new component and check the expand speed? You can use ExpandHierarchyItem and ExpandAllHierarchyItems methods to expand the hierarchy. Also you can check the updated version of our online example here.

    Sincerely yours,
    Stefan Dobrev
    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.
  3. DevCraft banner
  4. John Thompson
    John Thompson avatar
    44 posts
    Member since:
    Dec 2009

    Posted 15 Jun 2010 Link to this post

    Thanks.  I got it working using the two methods you cited and some additional coding.

    What would be nice is if I could expand an item and also have the parents expand or better yet set the SelectedItem and have its parents expand.  My application does this via walking down the hierarcy and expanding each parent and invoking the UpdateLayout method until I reach the item I want selected.
  5. Stefan Dobrev
    Admin
    Stefan Dobrev avatar
    790 posts

    Posted 18 Jun 2010 Link to this post

    Hi John,

    We will definitely handle this scenario in the official version of the control so when you expand an item all its parents will be expanded as well. Thanks for your feedback. It is greatly appreciated.

    Kind regards,
    Stefan Dobrev
    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