how can i accomplish this?
9 Answers, 1 is accepted
I am sending you a sample that demonstrates how you can sync two grids.
Sincerely yours,
Milan
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
The only concern I have is what happens when one of the grids is sorted. Id need to keep the grids in sync then by a key value (which will be the only thing matching between them) and not an exact visual position. I have some ideas but I welcome more suggestions.


'Telerik.Windows.Controls.RadGridView' does not contain a definition for 'ItemsControl' and no extension method 'ItemsControl' accepting a first argument of type 'Telerik.Windows.Controls.RadGridView' could be found (are you missing a using directive or an assembly reference?)
Regards
Kristján
You can use ChildrenOfType<T> extension method and find the required ScrollBar-s and GridViewScrollViewer-s. I am attaching the updated sample with binaries from our current official release.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

ps. do you have any tips if on of the grids has two more columns that are frozen,, or will that always be a problem ?
Thanks again
kristján
Could you clarify a bit - what is the exact behavior that you require in case there are frozen columns ?
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Yes, in the grid with the frozen columns has two more columns so the two grids don't scroll at the same pace
Example
grid 1
frozen1| frozen2|Col1|Col2|Col3......
grid 2
Col1|Col2|Col3......
So my temp solution for now is to put two columns in the grid 2 with an empty header and freeze them, then put width on those frozen columns, that way I get the same scroll for both grids..... I was just wondering if there is any other way to accomplish that ? Otherwise this works well.
Cheers
kristján
I believe such functionality cannot be easily supported since the width of the columns needs to be calculated, the speed of scrolling as well.
Nevertheless, I am happy to see that you find a proper solution for your specific scenario that fits your current requirements.
Maya
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>