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

ScrollIntoView for collapsed items

1 Answer 77 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 23 Apr 2012, 03:33 AM
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

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 23 Apr 2012, 08:08 AM
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 >>

Tags
TreeListView
Asked by
David
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or