DataGrid.getScrollContainer

Syntax

getScrollContainer();

Description

The getScrollContainer method returns the table container, which is controlled by scrollbars.

Comments

The method returns DOM element.

Example

To execute the example, the HTML page must contain the DataGrid component named grid (see Example of Creating the DataGrid Component). Get size of the table container controlled by scrollers:

// Get size of the table container controlled by scrollers
console.log("Container height: " + grid.getScrollContainer().style.height);
console.log("Container width: " + grid.getScrollContainer().style.width);

Container size is displayed in the console:

Container height: 280px

Container width: 275px

See also:

DataGrid