New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

OnScroll

This event is fired when the treelist is scrolled.

Fired by RadTreeList
Arguments get_isOnBottom() - bool indicating whether the scroll has reached the bottom of the treelist
get_isOnTop() - bool indicating whether the scroll has reached the top of the treelist
get_scrollControl() - the
element that is being scrolled
get_scrollTop() - the scrollTop value
get_scrollLeft() - the scrollLeft value
get_cancel() - bool
set_cancel(bool)
Can be canceled Yes

Example

function Scroll(sender, eventArgs) {
    if (eventArgs.get_isOnBottom()) {
        alert('Reached bottom.');
    }
    else if (eventArgs.get_isOnTop()) {
        alert('Reached top.');
    }
}

See Also

In this article