
Guillaume Crétot Richert
Top achievements
Rank 1
Guillaume Crétot Richert
asked on 21 Jan 2011, 05:48 PM
Hi,
The RadGridView.Scroll event is not raised when I scroll in a RadGridView. What other event can I handle to execute code when a user is scrolling in a RadGridView?
Thank you.
The RadGridView.Scroll event is not raised when I scroll in a RadGridView. What other event can I handle to execute code when a user is scrolling in a RadGridView?
Thank you.
7 Answers, 1 is accepted
0

Richard Slade
Top achievements
Rank 2
answered on 21 Jan 2011, 11:12 PM
Hello,
You can handle the VScrollBar and HScrollBar events on the Table Element
Hope that helps
Richard
You can handle the VScrollBar and HScrollBar events on the Table Element
this
.radGridView1.TableElement.VScrollBar.Scroll +=
new
ScrollEventHandler(VScrollBar_Scroll);
this
.radGridView1.TableElement.HScrollBar.Scroll +=
new
ScrollEventHandler(HScrollBar_Scroll);
private
void
VScrollBar_Scroll(Object sender, ScrollEventArgs e)
{ }
private
void
HScrollBar_Scroll(Object sender, ScrollEventArgs e)
{ }
Hope that helps
Richard
0

Guillaume Crétot Richert
Top achievements
Rank 1
answered on 03 Feb 2011, 03:51 PM
There is no "TableElement" property in my RadGridView class. I'm using version 2009.1.9.430. I've tried adding handlers to GridTableElement.VScrollBar and the various RadScrollBarElements of the gridview, but these events only get fired when I drag the scrollbars with my mouse. Using the mousewheel does not trigger the scroll events.
Thank you.
Thank you.
0

Richard Slade
Top achievements
Rank 2
answered on 03 Feb 2011, 03:56 PM
Hello,
I'm afraid I don't have an oder version to try this with, but you may want to look at GridElement as TableElement replaced GridElement. I would though advise to upgrade to the latest version if you can. There are many enhancements, fixes, new controls and features that you can take advantage of in the newest version.
All the best
Richard
I'm afraid I don't have an oder version to try this with, but you may want to look at GridElement as TableElement replaced GridElement. I would though advise to upgrade to the latest version if you can. There are many enhancements, fixes, new controls and features that you can take advantage of in the newest version.
All the best
Richard
0

Guillaume Crétot Richert
Top achievements
Rank 1
answered on 03 Feb 2011, 04:16 PM
Updating Telerik has proved to be a very expensive nightmare in the past, so we can't commit to doing it until we have some real time dedicated to it. When we get around to it, and if your fix works, I will come back to mark your post as the answer.
Thanks.
Thanks.
0

Richard Slade
Top achievements
Rank 2
answered on 03 Feb 2011, 04:20 PM
Ok, no problem - If you need anything further please let me know. I would only say that whilst the biggest changes were in Q2 2010, it's certainly been worth upgrading for us, and we usually find that the longer it's left, the harder it becomes to upgrade.
regards,
Richard
regards,
Richard
0

Guillaume Crétot Richert
Top achievements
Rank 1
answered on 09 Feb 2011, 08:52 PM
It turns out, I had already reported this issue back in 2009. This thread brings the solution to my problem: a combination of VScrollBars and GridBehavior overrides. In my - oh so - humble opinion, it seems firing the "Scroll" event properly could alleviate a very roundabout workaround, but, I guess that's rarely the case with Telerik products.
Thanks for your help!
Cheers!
Thanks for your help!
Cheers!
0
Hello Guillaume Crétot Richert,
Thank you for your feedback.
Yes, we understand your concerns. However, the Scroll event is inherited from the standard Control class in WinForms and it relates with the standard scrolling mechanism that is not used in RadGridView. Instead, we take advantage of our framework and use elements. That enables us to apply themes an animations on scrollbars.
If you have any further questions, we will be glad to help.
Regards,
Jack
the Telerik team
Thank you for your feedback.
Yes, we understand your concerns. However, the Scroll event is inherited from the standard Control class in WinForms and it relates with the standard scrolling mechanism that is not used in RadGridView. Instead, we take advantage of our framework and use elements. That enables us to apply themes an animations on scrollbars.
If you have any further questions, we will be glad to help.
Regards,
Jack
the Telerik team