API calls for the pivot table

Learn more about available API calls for the pivot table control.

getCell

getCell(rowIdx: Number, colIdx: Number): GridCellObject

Gets the cell object at the specified row and column coordinates.

Parameters

Parameter/TypeDescription
rowIdxNumberThe index of the row.
colIdxNumberThe index of the column.

Example

pivotTable.getCell(1, 2);

Returns: GridCellObject, which contains information about the cell.

getSelectedCells

getSelectedCells(): GridCellObject[]

Gets all currently selected cells.

Example:

pivotTable.getSelectedCells();

Returns: GridCellObject[]

scrollToColumn

scrollToColumn(columnIndex: Number)

Scrolls the grid to the specified column.

Parameters

Parameter/TypeDescription
columnIndexNumberThe index of the column to which the grid will be scrolled. Indexes start from 0.

Example:

pivotTable.scrollToColumn(5);

scrollToRow

scrollToRow(rowIndex: Number)

Scrolls the grid to the specified row.

Parameters

Parameter/TypeDescription
rowIndexNumberThe index of the row to which the grid will be scrolled. Indexes start from 0.

Example:

pivotTable.scrollToRow(5);