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

GridView Scrollbar event

2 Answers 74 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Naseem
Top achievements
Rank 1
Naseem asked on 06 Jan 2011, 03:40 AM
Hello,

I need to use two GridView which their Scrollbar work synchronously with each other, I mean if user changes one of the Gridview's scrollbar , the other GridView Scroll bar change exactly the same as the other one .
The reason that I need that is because I have two GridView with the exact same columns beside each other . when user change the scroll bar of one Gridview ,he needs to see the same columns values in the other GridView.

I have found there is GridViewScrollView which has got ScrollChanged event . 

Telerik.Windows.Controls.GridView.GridViewScrollViewer grdScrollViewer= new GridViewScrollViewer();
grdScrollViewer.ScrollChanged += new ScrollChangedEventHandler(grdScrollViewer_ScrollChanged);

1. I don't know how I can assign the GridViewScrollViewer to my GridView ?
2. How I can get the Scoll bar position and set the other scroll bar?

I appreciate your help,

Thank you,

2 Answers, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 06 Jan 2011, 05:03 PM
Hello Naseem,

 
You may take a look at the following forum thread "Synchronized Grids".
If you need any further assistance please let me know.

Kind regards,
Vanya Pavlova
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Naseem
Top achievements
Rank 1
answered on 06 Jan 2011, 11:10 PM
Thank you so much Vanya,

It was exactly what I was looking for . Thank you for the quick response . I appreciate it :)
Tags
GridView
Asked by
Naseem
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Naseem
Top achievements
Rank 1
Share this question
or