New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnScroll
Updated over 6 months ago
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
JavaScript
function Scroll(sender, eventArgs) {
if (eventArgs.get_isOnBottom()) {
alert('Reached bottom.');
}
else if (eventArgs.get_isOnTop()) {
alert('Reached top.');
}
}