getGridType (Client API reference)

Gets the grid type (grid or subgrid).

Grid types supported

Read-only and editable grids

Syntax

let gridType = gridContext.getGridType();

Return Value

Type: Number

Description: Returns one of the following values:

Value Description
1 HomePageGrid
2 Subgrid

Remarks

To get the gridContext, see Getting the grid context.