getScrollObject();
The getScrollObject method returns the DOM node used for smooth scrolling of table.
The method returns value of the HTMLElement type.
To execute the example, the HTML page must contain the DataGrid component named grid (see Example of Creating the DataGrid Component). Set indent of 50 pixels for a scrolling container:
function setScrollIndent(indent) {
// Get DOM node used for smooth table scrolling
var scrollObject = grid.getScrollObject();
scrollObject.style.marginTop = (-indent) + 'px';
}
// Set indent for scrolling container
setScrollIndent(50);
After executing the example scrolling container is offset by 50 pixels up:

See also: