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

Scrolling with two grids

1 Answer 54 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Keith
Top achievements
Rank 1
Keith asked on 08 Feb 2012, 10:42 AM
Hi

I've got two TreeListView controls and would like them to be "sync'd" up so that scrolling either grid causes the other to scroll. I've tried to implement the same as we do with the RadGridView but can't get it working (the grd.ChildrenOfType<GridViewScrollViewer> always returns NULL). Is this possible and if so how?

Thanks
Keith

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 09 Feb 2012, 11:00 AM
Hello Keith,

It is possible that you are trying to get the ScrollViewer before it has been created. That is why you get a null reference. You can try getting it in some of the events that fire after the TreeList components have been created i.e. the RowLoadedEvent. Mind however that Synchronous scrolling in two or more TreeLists can be tricky i.e. if one of the Lists has more expanded nodes than the other. You will have to think of a way to handle such scenarios.

Hope this helps!  

All the best,
Nik
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TreeListView
Asked by
Keith
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or