DataGrid.TableContainer

Syntax

TableContainer: DOMElement;

Description

The TableContainer property contains table container.

Comments

Use JSON or the setTableContainer method to set the property value and the getTableContainer method to get the property value.

Example

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

// Get size of table container, which is controlled by horizontal scrollbar
console.log("Container height: " + grid.getTableContainer().style.height);
console.log("Container width: " + grid.getTableContainer().style.width);
// Get container identifier
console.log("Container identifier: " + grid.getTableContainerId());

Container size is displayed in the console:

Container height: 280px

Container width: 275px

Container identifier: DataGrid86_grid_container

See also:

DataGrid