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

Intercepting scroll thumb drag events

6 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
scottw
Top achievements
Rank 1
scottw asked on 31 Jan 2011, 08:39 PM
I am capturing scroll events (via gvLibrary.TableElement.VScrollBar.Scroll += this.gvLibrary_Scroll;) so that I can call a method on a lazy-loader class to update records in my buffer.  It's designed so that the 100,000+ records won't have to load all at once, but instead we load just a few pages of data at a time.  Each time the scroll is CLICKED, I am successfully able to trap the event and update my lazy-loaded queue.  However, if I drag the scroll bar, the event does not appear to fire.  Is there another event that I can use to handle when the scroll thumb is dragged?

Thank you,

VSmirk

6 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 01 Feb 2011, 10:24 PM
Hello,

As far as I'm aware there is no event for this. However, if you are wishing to emulate paging, then there is an article here that descibes emulating paging with LINQ and 1 million records.

Hope that helps
Richard
0
Svett
Telerik team
answered on 03 Feb 2011, 11:40 AM
Hi VSmirk,

I am not able to reproduce the issue. The event is fired on my side. I would kindly ask you to open a new support ticket where you can send a sample project where your scenario is illustrates.

Kind regards,
Svett
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Jeff
Top achievements
Rank 1
answered on 27 Nov 2014, 07:12 PM
Does anyone know if there's an updated URL for the link Richard posted?
0
Stefan
Telerik team
answered on 01 Dec 2014, 07:32 AM
Hi,

The link you are looking for is here: http://blogs.telerik.com/winformsteam/posts/08-09-02/emulating-paging-with-radgridview-for-winforms-and-linq-with-1-million-records.aspx. However, this article is quote outdated. RadGridView now supports paging out of the box. More information about it is available in our documentation: http://www.telerik.com/help/winforms/gridview-paging-overview.html.

If you need to load great amounts of data, you can look at the following article: http://www.telerik.com/support/kb/winforms/gridview/details/high-performance-with-radgridview-and-virtual-mode-including-filtering-sorting-and-grouping.

I hope that you find this information useful.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jeff
Top achievements
Rank 1
answered on 01 Dec 2014, 04:20 PM
Thank you, Stefan.  At first glance, those articles do look useful.  Regarding the OP's original question, it would sure be nice if the GridView, which "is-a" ScrollableControl, would honour the contract and emit Scroll events.  To load more data is not the only use of that event.
0
Stefan
Telerik team
answered on 04 Dec 2014, 08:55 AM
Hello Jeff,

I am glad you find these articles useful.

As my colleagues Svett mentioned back in 2011, we were not able to replicate a case where the Scroll event will not be fired. I have just tested this again, with our latest version, and the event is triggered correctly.

Should you have any issues with this event, please get back to us with more details how to replicate the undesired behavior and we will gladly look into it.

Regards,
Stefan
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
GridView
Asked by
scottw
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Svett
Telerik team
Jeff
Top achievements
Rank 1
Stefan
Telerik team
Share this question
or