ScrollIntoView for collapsed items

2 posts, 0 answers
  1. David
    David avatar
    12 posts
    Member since:
    Mar 2009

    Posted 22 Apr 2012 Link to this post

    I am using a TreeListView and want to scroll to a particular data item. This works fine if I have expanded the entire tree (hence I assume actually generating rows for all the data items). But if the tree is collapsed ScrollIntoView does not work. What is the recommended method to programatically display a particular data item in a TreeListView even if that data item has not been visible previously.

    My datasets only contain approx 1000 items or so. Can I disable dynamic loading? I've had lots of problems trying to work with rows that apparently have not actually been created yet.

    Thanks
    Dave Goughnour
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Apr 2012 Link to this post

    Hello Dave Goughnour,

     You can call the ExpandHierarchyItem(object dataItem) method of the RadTreeListView before you scroll to that item.

    Kind regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top