RadGrid for ASP.NET AJAX

RadControls for ASP.NET AJAX

Telerik.Web.UI.GridScrollEventArgs OnScroll Property

Note

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as cancel, you call the get_cancel or set_cancel.

This event is fired when you scroll the grid.

Fired by

RadGrid

Arguments

scrollTop - the vertical position of the scroll

scrollLeft - the horizontal position of the scroll

scrollControl - the div element of the scroll

isOnTop - whether the scroll is on top

isOnBottom - whether the scroll is on bottom

Can be canceled

No

Example:

CopyASPX
<telerik:RadGrid ID="RadGrid1" runat="server">
    <ClientSettings>
        <ClientEvents OnScroll="Scroll" />
    </ClientSettings>
</telerik:RadGrid>
CopyJavaScript
function Scroll(sender, eventArgs) {
    alert(eventArgs.get_scrollTop());
    alert(eventArgs.get_scrollLeft());
    alert(eventArgs.get_scrollControl());
    alert(eventArgs.get_isOnTop());
    alert(eventArgs.get_isOnBottom());
}