ASPxClientVerticalGrid.SetVerticalScrollPosition(position) Method

Specifies the vertical scroll position for the grid's content.

Declaration

SetVerticalScrollPosition(position: number): void

Parameters

Name Type Description
position number

An integer value specifying the vertical scroll position.

Remarks

If vertical scrolling is available within the grid (controlled by the ASPxGridSettings.VerticalScrollBarMode property), the SetVerticalScrollPosition method allows you to scroll the grid'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