Skip to main content

ASPxClientTreeList.SetVerticalScrollPosition(position) Method

Specifies the vertical scroll position for the tree list’s content.

Declaration

SetVerticalScrollPosition(
    position: number
): void

Parameters

Name Type Description
position number

The vertical scroll position.

Remarks

If vertical scrolling is available within the control (controlled by the TreeListSettings.VerticalScrollBarMode property), the SetVerticalScrollPosition method allows you to scroll the control’s content vertically on the client side.

//scrolls control content automatically
var scrollPosition = 0;
function onInit(s, e) {
     setInterval(function () {
          s.SetVerticalScrollPosition(scrollPosition);
          scrollPosition++;
}, 100);
See Also