GridApi

Provides access to important properties and functionalities of AdapTable e.g. sorting, selected cells etc.

TypeScript
export interface

Methods

MethodReturnsDescription
addAgGridColumnDefinition(columnDefinition)voidAdds a Column Definition to the Grid
addGridData(dataRows, config)Promise<IRowNode[]>Adds rows to AdapTable (and AG Grid)
addOrUpdateGridData(dataRows, config)Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; \}>Adds or Updates AdapTable (and AG Grid) with new and changed rows
applyFiltering()voidApplies current Filtering in AdapTable
clearAdaptableSorting()voidRemoves Column Sorts in AdapTable
clearFiltering()voidRemoves all current Filters in AdapTable
clearRowGroupColumns()voidClears Row Grouping in the Grid
closeTransposedView()voidCloses the transposed view of the Grid (if open)
collapseAllRowGroups()voidCollapse all open groups in Row Grouping
deleteGridData(dataRows, config)Promise<IRowNode[]>Deletes rows from AdapTable (and AG Grid)
deselectAll()voidDeselects all selected rows, cells and ranges
deSelectNode(rowNode, clearSelection)voidDeselects the AG Grid Row Node in AdapTable
deSelectNodes(rowNodes, clearSelection)voidAG Grid Row Nodes in AdapTable
deSelectRow(primaryKeyValue, clearSelection)voidDeselects Row with given Primary Key Value
deSelectRows(primaryKeyValues, clearSelection)voidDeselects Row with given Primary Key Values
expandAllRowGroups()voidExpands all closed groups in Row Grouping
expandRowGroupsForValues(columnValues)voidExpands Row Groups that contain given keys
getAgGridRowModelType()RowModelTypeReturns AG Grid Row Model Type
getAllAgGridColumns()Column<any>[]Return all AG Grid columns
getAllRowNodes(config)IRowNode[]Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)
getCellDisplayValue(primaryKeyValue, columnId)any | undefinedRetrieves Display Value for a given cell
getCellNormalisedValue(primaryKeyValue, columnId)any | undefinedRetrieves Normalised Value for a given cell
getCellRawValue(primaryKeyValue, columnId)any | undefinedRetrieves Raw Value for a given cell
getCellRawValueCount(columnId, rawValue)numberGets the count of the cells in a Column that have the given Raw Value
getCellSummaryInfo()CellSummmaryInfoReturns summary info on Selected Cells
getColumnCount()numberReturns number of columns in Data Source
getColumnData(columnId)any[]Retrieves all the values for a single Column.
getColumnSortForColumn(columnId)ColumnSort | undefinedRetrieves ColumnSort for a given Column
getColumnSorts()ColumnSort[]Returns Column Sort information in AdapTable
getDisplayValueFromRawValue(rowNode, columnId, rawValue)string | undefinedRetrieves Formatted Value for a given Raw Value in given Column
getDisplayValueFromRowNode(rowNode, columnId)any | undefinedRetrieves Display Value for Cell in given Row and Column
getFilteredColumnData(columnId)any[]Retrieves the filtered values for a single Column.
getFilteredData()any[]Retrieves filtered data from the grid
getFirstDisplayedRowNode()IRowNode | undefinedRetrieves the first Displayed Row Node in AdapTable
getFirstRowNode()IRowNode | undefinedRetrieves the first Row Node in AdapTable
getGridCellFromRowNode(rowNode, columnId)GridCell | undefinedRetrieves Cell in given Row and Column
getGridCellsForDisplayValue(columnId, displayValue)GridCell[] | undefinedReturns all the Grid Cells in a Column that have the given Display Value
getGridCellsForRawValue(columnId, rawValue)GridCell[] | undefinedReturns all the Grid Cells in a Column that have the given Raw Value
getGridContainerElement()HTMLElement | nullReturns the Grid Container in which the AdapTable Instance is present
getGridData()any[]Retrieves all data from the grid
getGroupRowNodes(config)IRowNode[]Retrieves all Grouped Row Nodes currently in the Grid
getInternalState()InternalStateReturns the Internal section from AdapTable State
getNormalisedValueFromRowNode(rowNode, columnId)any | undefinedRetrieves Normalised Value for Cell in given Row and Column
getPrimaryKeyValueForRowNode(rowNode)anyReturns the Primary Kev Value for a given Row Node
getPrimaryKeyValuesForRowNodes(rowNodes)any[]Returns the Primary Kev Values for a given Row Node collection
getRawValueFromRowNode(rowNode, columnId)any | undefinedRetrieves Raw Value for Cell in given Row and Column
getRowCount()numberReturns number of rows in Data Source
getRowNodeForIndex(rowIndex)IRowNode | undefinedRetrieves the displayed RowNode at the given index
getRowNodeForPrimaryKey(primaryKeyValue)IRowNodeRetrieves Row Node that contains given Primary Key
getRowNodesForPrimaryKeys(primaryKeyValues)IRowNode[]Retrieves Row Nodes that contain given Primary Keys
getSelectedCellInfo()SelectedCellInfoReturns all current Selected Cells in AdapTable
getSelectedRowInfo()SelectedRowInfoReturns all current Selected Rows in AdapTable
getVariant()AdaptableVariantReturns current AdapTable Variant: vanilla, angular, react, vue
getVisibleColumnCount()numberReturns number of visible columns in Data Source
getVisibleColumnData(columnId)any[]Retrieves the visible (filtered and sorted) values for a single Column.
getVisibleData()any[]Retrieves visible data from the grid (filtered and sorted)
getVisibleRowCount()numberReturns number of rows in Data Source
getVisibleRowNodes(config)IRowNode[]Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)
highlightCell(cellHighlightInfo)voidHighlights a Cell in AdapTable
highlightColumn(columnHighlightInfo)voidHighlights a Column in AdapTable
highlightRow(rowHighlightInfo)voidHighlight a row using an adaptable style
highlightRows(rowsHighlightInfo)voidHighlight rows using an adaptable style
isCellEditable(gridCell)booleanChecks if given Grid Cell is editable
isCellEdited(gridCell)booleanChecks if given Grid Cell has been edited (uses Data Change History)
isEveryCellEditable(gridCells)booleanChecks if all of given Grid Cells are editable
isGrandTotalRowNode(rowNode)booleanWhether given Row Node is a Grand Total Row
isGridGroupable()booleanWhether AdapTable instance can be Row Grouped
isGridInPivotMode()booleanWhether Grid is currently in Pivot Mode
isGridPivotable()booleanWhether AdapTable instance can be pivoted
isGridRangeSelectable()booleanWhether AdapTable instance offers cell range selection
isGridRowGrouped()booleanWhether Grid is currently showing Row Groups
isGridRowSelectable()booleanWhether AdapTable instance offers row selection
isGridRowSelected(primaryKeyValue)booleanWhether a Row is selected
isGroupRowNode(rowNode)booleanWhether given Row Node is a Row Group
isMasterDetailGrid()booleanWhether Grid is a Master Detail Grid
isQuickFilterAvailable()booleanWhether Quick Filter is available in the Grid
isSummaryNode(rowNode)booleanWhether given Row Node is in a Summary Row
isTreeDataGrid()booleanWhether Grid displays a Tree Data (structured hierarchical data)
isVisibleRowNode(rowNode)booleanWhether given Row Node is visible
jumpToCell(primaryKeyValue, columnId, rowNode)voidGrid will jump to cell in a given Row and Column
jumpToColumn(columnId)voidGrid will jump to Column that has given ColumnId
jumpToRow(primaryKeyValue)voidGrid will jump to Row containing given Primary Kev Value
loadGridData(data)voidLoads data into grid and fire a RowChanged.trigger='Load' event
manageGridData(dataRowConfig, dataUpdateConfig)Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; removedRows: IRowNode[]; \}>Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction
openGridInfoSettingsPanel()voidOpens Settings Panel with Grid Info section selected and visible
redrawGrid()voidRedraws AdapTable (expensive operation so use sparingly)
refreshAllCells(forceUpdate)voidRefreshes all Cells in the Grid
refreshCell(rowNode, columnId, suppressFlash)voidRefresh a Cell Value in AdapTable
refreshCells(rowNode, columnIds, suppressFlash)voidRefresh Cell Values in AdapTable
refreshColumn(columnId)voidRefresh Column Values in AdapTable
refreshColumns(columnIds)voidRefresh Columns Values in AdapTable
refreshGridCell(gridCell)voidRefreshes a single Grid Cell
refreshGridCells(gridCells)voidRefreshes a set of Grid Cells
refreshGridHeader()voidForces a re-render of the Grid Header
refreshGroupRowNodes()voidForces a re-render of all Group Rows (including aggregations)
refreshRowByPrimaryKey(primaryKey)voidForces a re-render of Row with given Primary Key value
refreshRowNode(rowNode)voidForces a re-render of the given row
refreshRowNodes(rowNodes)voidForces re-render of given rows (if none provided, all rows are refreshed)
removeAgGridColumnDefinition(columnId)voidRemoves the Column Definition for a given Column.
selectAll()voidSelect the whole Grid
selectCellRange(gridCellRange, clearSelection)voidSelects a group of cells in a given range - provide either primary keys or row indexes
selectCellRangeByQuery(query, gridCellRange, clearSelection)voidSelects a group of cells in a given range using a query
selectColumn(columnId)voidSelects a Column in AG Grid
selectColumns(columnIds)voidSelects Columns in AG Grid
selectNode(rowNode, clearSelection)voidSelects the AG Grid Row Node in AdapTable
selectNodes(rowNodes, clearSelection)voidSelects the AG Grid Row Nodes in AdapTable
selectRow(primaryKeyValue, clearSelection)voidSelects Row with given Primary Key Value
selectRows(primaryKeyValues, clearSelection)voidSelects Rows with given Primary Key Values
setAdaptableSorting(columnSorts)voidSorts AdapTable using given Column Sorts
setAgGridColumnDefinitions(columnDefinitions)voidSets the Column Definitions for the Grid
setCellValue(cellUpdateRequest)voidUpdates cell in AdapTable (as an AG Grid edit)
setCellValues(cellUpdateRequests)voidUpdates multiple cells
setRowGroupColumns(columnIds)voidSets the grid to Row Group
showTransposedView(transposeConfig)voidOpens a window with a transposed view of Grid
undoCellEdit(cellDataChangedInfo)booleanReverses a data change (if triggered by cell edit)
unHighlightAllCells()voidUnhighlights all highlighted Cells in AdapTable
unHighlightAllColumns()voidUnhighlights all highlighted Columns in AdapTable
unHighlightAllRows()voidRemove all highlighted rows
unHighlightCell(primaryKeyValue, columnId)voidUnhighlights a Cell in AdapTable
unHighlightColumn(columnId)voidUnhighlights a Column in AdapTable
unHighlightRow(primaryKeyValue)voidRemove highlight from Row
unHighlightRows(primaryKeyValues)voidRemove highlight from given Rows
updateAgGridColumnDefinition(columnDefinition)voidUpdates Column Definition for given Column; use to update NON-STATEFUL AG Grid Column props (which are merged with existing Column Def)
updateAgGridColumnDefinitions(columnDefinitions)voidUpdates Column Definition for given Columns; use to update NON-STATEFUL AG Grid Column props (which are merged with existing Column Def)
updateAgGridColumnState(columnState)voidUpdates Ag Grid Column State for a given Column; use to update STATEFUL AG Grid Column props
updateAgGridColumnStates(columnStates)voidUpdates Ag Grid Column State for given Columns; use to update STATEFUL AG Grid Column props
updateGridData(dataRows, config)Promise<IRowNode[]>Updates AdapTable (and AG Grid) with rows that have changed

Method Details

addAgGridColumnDefinition

Adds a Column Definition to the Grid

TypeScript
addAgGridColumnDefinition(columnDefinition: ColDefWithId): void;
Parameters
ParameterTypeDescription
columnDefinitionColDefWithIdthe new Column Definition
Returns

void

addGridData

Adds rows to AdapTable (and AG Grid)

TypeScript
addGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
Parameters
ParameterTypeDescription
dataRowsany[]rows to add; ensure all 'mandatory' fields are included and Primary Key is unique
configDataUpdateConfigbatch option and callback function to run post addition
Returns

Promise<IRowNode[]>

addOrUpdateGridData

Adds or Updates AdapTable (and AG Grid) with new and changed rows

TypeScript
addOrUpdateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<{
        addedRows: IRowNode[];
        updatedRows: IRowNode[];
    }>;
Parameters
ParameterTypeDescription
dataRowsany[]rows to add or update
configDataUpdateConfigbatch option and callback function to run post change
Returns

Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; \}>

applyFiltering

Applies current Filtering in AdapTable

TypeScript
applyFiltering(): void;
Returns

void

clearAdaptableSorting

Removes Column Sorts in AdapTable

TypeScript
clearAdaptableSorting(): void;
Returns

void

clearFiltering

Removes all current Filters in AdapTable

TypeScript
clearFiltering(): void;
Returns

void

clearRowGroupColumns

Clears Row Grouping in the Grid

TypeScript
clearRowGroupColumns(): void;
Returns

void

closeTransposedView

Closes the transposed view of the Grid (if open)

TypeScript
closeTransposedView(): void;
Returns

void

collapseAllRowGroups

Collapse all open groups in Row Grouping

TypeScript
collapseAllRowGroups(): void;
Returns

void

deleteGridData

Deletes rows from AdapTable (and AG Grid)

TypeScript
deleteGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
Parameters
ParameterTypeDescription
dataRowsany[]rows which should be deleted
configDataUpdateConfigbatch option and callback function to run post deletion
Returns

Promise<IRowNode[]>

deselectAll

Deselects all selected rows, cells and ranges

TypeScript
deselectAll(): void;
Returns

void

deSelectNode

Deselects the AG Grid Row Node in AdapTable

TypeScript
deSelectNode(rowNode: IRowNode, clearSelection: boolean): void;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to DeSelect
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

deSelectNodes

AG Grid Row Nodes in AdapTable

TypeScript
deSelectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
Parameters
ParameterTypeDescription
rowNodesIRowNode[]Nodes to DeSelect
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

deSelectRow

Deselects Row with given Primary Key Value

TypeScript
deSelectRow(primaryKeyValue: any, clearSelection: boolean): void;
Parameters
ParameterTypeDescription
primaryKeyValueanyPrimary Key Value of Row to deselect
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

deSelectRows

Deselects Row with given Primary Key Values

TypeScript
deSelectRows(primaryKeyValues: any[], clearSelection: boolean): void;
Parameters
ParameterTypeDescription
primaryKeyValuesany[]Primary Key Values of Rows to deselect
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

expandAllRowGroups

Expands all closed groups in Row Grouping

TypeScript
expandAllRowGroups(): void;
Returns

void

expandRowGroupsForValues

Expands Row Groups that contain given keys

TypeScript
expandRowGroupsForValues(columnValues: any[]): void;
Parameters
ParameterTypeDescription
columnValuesany[]values to open Row Groups for
Returns

void

getAgGridRowModelType

Returns AG Grid Row Model Type

TypeScript
getAgGridRowModelType(): RowModelType;
Returns

RowModelType

getAllAgGridColumns

Return all AG Grid columns

TypeScript
getAllAgGridColumns(): Column<any>[];
Returns

Column<any>[]

getAllRowNodes

Retrieves all Row Nodes currently in the Grid (by default excluding the group rows)

TypeScript
getAllRowNodes(config?: {
        includeGroupRows?: boolean;
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
Parameters
ParameterTypeDescription
config\{ includeGroupRows?: boolean; filterFn?(rowNode: IRowNode): boolean; \}configuration
Returns

IRowNode[]

getCellDisplayValue

Retrieves Display Value for a given cell

TypeScript
getCellDisplayValue(primaryKeyValue: any, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
primaryKeyValueany(unique) value in Primary Key Column
columnIdstringname of Column which contains the cell
Returns

any | undefined

getCellNormalisedValue

Retrieves Normalised Value for a given cell

TypeScript
getCellNormalisedValue(primaryKeyValue: any, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
primaryKeyValueany(unique) value in Primary Key Column
columnIdstringname of Column which contains the cell
Returns

any | undefined

getCellRawValue

Retrieves Raw Value for a given cell

TypeScript
getCellRawValue(primaryKeyValue: any, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
primaryKeyValueany(unique) value in Primary Key Column
columnIdstringname of Column which contains the cell
Returns

any | undefined

getCellRawValueCount

Gets the count of the cells in a Column that have the given Raw Value

TypeScript
getCellRawValueCount(columnId: string, rawValue: any): number;
Parameters
ParameterTypeDescription
columnIdstringColumnId to lookup
rawValueanyRaw Value to use
Returns

number

getCellSummaryInfo

Returns summary info on Selected Cells

TypeScript
getCellSummaryInfo(): CellSummmaryInfo;
Returns

CellSummmaryInfo

getColumnCount

Returns number of columns in Data Source

TypeScript
getColumnCount(): number;
Returns

number

getColumnData

Retrieves all the values for a single Column.

TypeScript
getColumnData(columnId: string): any[];
Parameters
ParameterTypeDescription
columnIdstringthe Column to read the values from
Returns

any[]

getColumnSortForColumn

Retrieves ColumnSort for a given Column

TypeScript
getColumnSortForColumn(columnId: string): ColumnSort | undefined;
Parameters
ParameterTypeDescription
columnIdstringId of Column to retrieve ColumnSort
Returns

ColumnSort | undefined

getColumnSorts

Returns Column Sort information in AdapTable

TypeScript
getColumnSorts(): ColumnSort[];
Returns

ColumnSort[]

getDisplayValueFromRawValue

Retrieves Formatted Value for a given Raw Value in given Column

TypeScript
getDisplayValueFromRawValue(rowNode: IRowNode, columnId: string, rawValue: any): string | undefined;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode containig the Column
columnIdstringColumnId to lookup
rawValueanyRaw Value
Returns

string | undefined

getDisplayValueFromRowNode

Retrieves Display Value for Cell in given Row and Column

TypeScript
getDisplayValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
rowNodeIRowNodeRow to use
columnIdstringColumnId to lookup
Returns

any | undefined

getFilteredColumnData

Retrieves the filtered values for a single Column.

TypeScript
getFilteredColumnData(columnId: string): any[];
Parameters
ParameterTypeDescription
columnIdstringthe Column to read the values from
Returns

any[]

getFilteredData

Retrieves filtered data from the grid

TypeScript
getFilteredData(): any[];
Returns

any[]

getFirstDisplayedRowNode

Retrieves the first Displayed Row Node in AdapTable

TypeScript
getFirstDisplayedRowNode(): IRowNode | undefined;
Returns

IRowNode | undefined

getFirstRowNode

Retrieves the first Row Node in AdapTable

TypeScript
getFirstRowNode(): IRowNode | undefined;
Returns

IRowNode | undefined

getGridCellFromRowNode

Retrieves Cell in given Row and Column

TypeScript
getGridCellFromRowNode(rowNode: IRowNode, columnId: string): GridCell | undefined;
Parameters
ParameterTypeDescription
rowNodeIRowNodeRow to use
columnIdstringColumnId to lookup
Returns

GridCell | undefined

getGridCellsForDisplayValue

Returns all the Grid Cells in a Column that have the given Display Value

TypeScript
getGridCellsForDisplayValue(columnId: string, displayValue: any): GridCell[] | undefined;
Parameters
ParameterTypeDescription
columnIdstringColumnId to lookup
displayValueanyDisplay Value to use
Returns

GridCell[] | undefined

getGridCellsForRawValue

Returns all the Grid Cells in a Column that have the given Raw Value

TypeScript
getGridCellsForRawValue(columnId: string, rawValue: any): GridCell[] | undefined;
Parameters
ParameterTypeDescription
columnIdstringColumnId to lookup
rawValueanyRaw Value to use
Returns

GridCell[] | undefined

getGridContainerElement

Returns the Grid Container in which the AdapTable Instance is present

TypeScript
getGridContainerElement(): HTMLElement | null;
Returns

HTMLElement | null

getGridData

Retrieves all data from the grid

TypeScript
getGridData(): any[];
Returns

any[]

getGroupRowNodes

Retrieves all Grouped Row Nodes currently in the Grid

TypeScript
getGroupRowNodes(config?: {
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
Parameters
ParameterTypeDescription
config\{ filterFn?(rowNode: IRowNode): boolean; \}configuration
Returns

IRowNode[]

getInternalState

Returns the Internal section from AdapTable State

TypeScript
getInternalState(): InternalState;
Returns

InternalState

getNormalisedValueFromRowNode

Retrieves Normalised Value for Cell in given Row and Column

TypeScript
getNormalisedValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
rowNodeIRowNodeRow to use
columnIdstringColumnId to lookup
Returns

any | undefined

getPrimaryKeyValueForRowNode

Returns the Primary Kev Value for a given Row Node

TypeScript
getPrimaryKeyValueForRowNode(rowNode: IRowNode): any;
Parameters
ParameterTypeDescription
rowNodeIRowNoderowNode to look up
Returns

any

getPrimaryKeyValuesForRowNodes

Returns the Primary Kev Values for a given Row Node collection

TypeScript
getPrimaryKeyValuesForRowNodes(rowNodes: IRowNode[]): any[];
Parameters
ParameterType
rowNodesIRowNode[]
Returns

any[]

getRawValueFromRowNode

Retrieves Raw Value for Cell in given Row and Column

TypeScript
getRawValueFromRowNode(rowNode: IRowNode, columnId: string): any | undefined;
Parameters
ParameterTypeDescription
rowNodeIRowNodeRow to use
columnIdstringColumnId to lookup
Returns

any | undefined

getRowCount

Returns number of rows in Data Source

TypeScript
getRowCount(): number;
Returns

number

getRowNodeForIndex

Retrieves the displayed RowNode at the given index

TypeScript
getRowNodeForIndex(rowIndex: number): IRowNode | undefined;
Parameters
ParameterTypeDescription
rowIndexnumberrow index
Returns

IRowNode | undefined

getRowNodeForPrimaryKey

Retrieves Row Node that contains given Primary Key

TypeScript
getRowNodeForPrimaryKey(primaryKeyValue: any): IRowNode;
Parameters
ParameterTypeDescription
primaryKeyValueanyPrimary Key Value to look up
Returns

IRowNode

getRowNodesForPrimaryKeys

Retrieves Row Nodes that contain given Primary Keys

TypeScript
getRowNodesForPrimaryKeys(primaryKeyValues: any[]): IRowNode[];
Parameters
ParameterTypeDescription
primaryKeyValuesany[]Primary Kev Values to look up
Returns

IRowNode[]

getSelectedCellInfo

Returns all current Selected Cells in AdapTable

TypeScript
getSelectedCellInfo(): SelectedCellInfo;
Returns

SelectedCellInfo

getSelectedRowInfo

Returns all current Selected Rows in AdapTable

TypeScript
getSelectedRowInfo(): SelectedRowInfo;
Returns

SelectedRowInfo

getVariant

Returns current AdapTable Variant: vanilla, angular, react, vue

TypeScript
getVariant(): AdaptableVariant;
Returns

AdaptableVariant

getVisibleColumnCount

Returns number of visible columns in Data Source

TypeScript
getVisibleColumnCount(): number;
Returns

number

getVisibleColumnData

Retrieves the visible (filtered and sorted) values for a single Column.

TypeScript
getVisibleColumnData(columnId: string): any[];
Parameters
ParameterTypeDescription
columnIdstringthe Column to read the values from
Returns

any[]

getVisibleData

Retrieves visible data from the grid (filtered and sorted)

TypeScript
getVisibleData(): any[];
Returns

any[]

getVisibleRowCount

Returns number of rows in Data Source

TypeScript
getVisibleRowCount(): number;
Returns

number

getVisibleRowNodes

Retrieves all filtered Row Nodes currently in the Grid (i.e. after applying the current filter)

TypeScript
getVisibleRowNodes(config?: {
        includeGroupRows?: boolean;
        filterFn?(rowNode: IRowNode): boolean;
    }): IRowNode[];
Parameters
ParameterTypeDescription
config\{ includeGroupRows?: boolean; filterFn?(rowNode: IRowNode): boolean; \}configuration
Returns

IRowNode[]

highlightCell

Highlights a Cell in AdapTable

TypeScript
highlightCell(cellHighlightInfo: CellHighlightInfo): void;
Parameters
ParameterTypeDescription
cellHighlightInfoCellHighlightInfocell to highlight
Returns

void

highlightColumn

Highlights a Column in AdapTable

TypeScript
highlightColumn(columnHighlightInfo: ColumnHighlightInfo): void;
Parameters
ParameterTypeDescription
columnHighlightInfoColumnHighlightInfocolumn to highlight
Returns

void

highlightRow

Highlight a row using an adaptable style

TypeScript
highlightRow(rowHighlightInfo: RowHighlightInfo): void;
Parameters
ParameterTypeDescription
rowHighlightInfoRowHighlightInfohighlight instructions
Returns

void

highlightRows

Highlight rows using an adaptable style

TypeScript
highlightRows(rowsHighlightInfo: RowsHighlightInfo): void;
Parameters
ParameterType
rowsHighlightInfoRowsHighlightInfo
Returns

void

isCellEditable

Checks if given Grid Cell is editable

TypeScript
isCellEditable(gridCell: GridCell): boolean;
Parameters
ParameterTypeDescription
gridCellGridCellCell to check
Returns

boolean

isCellEdited

Checks if given Grid Cell has been edited (uses Data Change History)

TypeScript
isCellEdited(gridCell: GridCell): boolean;
Parameters
ParameterTypeDescription
gridCellGridCellCell to check
Returns

boolean

isEveryCellEditable

Checks if all of given Grid Cells are editable

TypeScript
isEveryCellEditable(gridCells: GridCell[]): boolean;
Parameters
ParameterTypeDescription
gridCellsGridCell[]cells to check
Returns

boolean

isGrandTotalRowNode

Whether given Row Node is a Grand Total Row

TypeScript
isGrandTotalRowNode(rowNode: IRowNode): boolean;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to check
Returns

boolean

isGridGroupable

Whether AdapTable instance can be Row Grouped

TypeScript
isGridGroupable(): boolean;
Returns

boolean

isGridInPivotMode

Whether Grid is currently in Pivot Mode

TypeScript
isGridInPivotMode(): boolean;
Returns

boolean

isGridPivotable

Whether AdapTable instance can be pivoted

TypeScript
isGridPivotable(): boolean;
Returns

boolean

isGridRangeSelectable

Whether AdapTable instance offers cell range selection

TypeScript
isGridRangeSelectable(): boolean;
Returns

boolean

isGridRowGrouped

Whether Grid is currently showing Row Groups

TypeScript
isGridRowGrouped(): boolean;
Returns

boolean

isGridRowSelectable

Whether AdapTable instance offers row selection

TypeScript
isGridRowSelectable(): boolean;
Returns

boolean

isGridRowSelected

Whether a Row is selected

TypeScript
isGridRowSelected(primaryKeyValue: any): boolean;
Parameters
ParameterTypeDescription
primaryKeyValueanypkVaue of Row to check
Returns

boolean

isGroupRowNode

Whether given Row Node is a Row Group

TypeScript
isGroupRowNode(rowNode: IRowNode): boolean;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to check
Returns

boolean

isMasterDetailGrid

Whether Grid is a Master Detail Grid

TypeScript
isMasterDetailGrid(): boolean;
Returns

boolean

isQuickFilterAvailable

Whether Quick Filter is available in the Grid

TypeScript
isQuickFilterAvailable(): boolean;
Returns

boolean

isSummaryNode

Whether given Row Node is in a Summary Row

TypeScript
isSummaryNode(rowNode: IRowNode): boolean;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to check
Returns

boolean

isTreeDataGrid

Whether Grid displays a Tree Data (structured hierarchical data)

TypeScript
isTreeDataGrid(): boolean;
Returns

boolean

isVisibleRowNode

Whether given Row Node is visible

TypeScript
isVisibleRowNode(rowNode: IRowNode): boolean;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to check
Returns

boolean

jumpToCell

Grid will jump to cell in a given Row and Column

TypeScript
jumpToCell(primaryKeyValue: any, columnId: string, rowNode?: IRowNode): void;
Parameters
ParameterTypeDescription
primaryKeyValueanyvalue in Primary Key Column
columnIdstringId of Column
rowNodeIRowNodeAG Grid RowNode
Returns

void

jumpToColumn

Grid will jump to Column that has given ColumnId

TypeScript
jumpToColumn(columnId: string): void;
Parameters
ParameterTypeDescription
columnIdstringId of Column to jump to
Returns

void

jumpToRow

Grid will jump to Row containing given Primary Kev Value

TypeScript
jumpToRow(primaryKeyValue: any): void;
Parameters
ParameterTypeDescription
primaryKeyValueanyvalue in Primary Key Column
Returns

void

loadGridData

Loads data into grid and fire a RowChanged.trigger='Load' event

TypeScript
loadGridData(data: any): void;
Parameters
ParameterTypeDescription
dataanydata to load
Returns

void

manageGridData

Adds, Updates or Deletes rows in AdapTable (and AG Grid) in single transaction

TypeScript
manageGridData(dataRowConfig: DataRowConfig, dataUpdateConfig?: DataUpdateConfig): Promise<{
        addedRows: IRowNode[];
        updatedRows: IRowNode[];
        removedRows: IRowNode[];
    }>;
Parameters
ParameterTypeDescription
dataRowConfigDataRowConfigRows to add, update or remove
dataUpdateConfigDataUpdateConfigbatch option and callback function to run post transaction
Returns

Promise<\{ addedRows: IRowNode[]; updatedRows: IRowNode[]; removedRows: IRowNode[]; \}>

openGridInfoSettingsPanel

Opens Settings Panel with Grid Info section selected and visible

TypeScript
openGridInfoSettingsPanel(): void;
Returns

void

redrawGrid

Redraws AdapTable (expensive operation so use sparingly)

TypeScript
redrawGrid(): void;
Returns

void

refreshAllCells

Refreshes all Cells in the Grid

TypeScript
refreshAllCells(forceUpdate?: boolean): void;
Parameters
ParameterTypeDescription
forceUpdatebooleanforces AG Grid change detection
Returns

void

refreshCell

Refresh a Cell Value in AdapTable

TypeScript
refreshCell(rowNode: IRowNode, columnId: string, suppressFlash?: boolean): void;
Parameters
ParameterTypeDescription
rowNodeIRowNodeAG Grid RowNode which contains cell to refresh
columnIdstringColumnId which contains cell to refresh
suppressFlashboolean
Returns

void

refreshCells

Refresh Cell Values in AdapTable

TypeScript
refreshCells(rowNode: IRowNode, columnIds: string[], suppressFlash?: boolean): void;
Parameters
ParameterTypeDescription
rowNodeIRowNodeagGrid RowNode which contains cells to refresh
columnIdsstring[]ColumnIds which contain cells to refresh
suppressFlashboolean
Returns

void

refreshColumn

Refresh Column Values in AdapTable

TypeScript
refreshColumn(columnId: string): void;
Parameters
ParameterTypeDescription
columnIdstringthe ID of the Column to refresh
Returns

void

refreshColumns

Refresh Columns Values in AdapTable

TypeScript
refreshColumns(columnIds: string[]): void;
Parameters
ParameterTypeDescription
columnIdsstring[]the IDs of the Columns to refresh
Returns

void

refreshGridCell

Refreshes a single Grid Cell

TypeScript
refreshGridCell(gridCell: GridCell): void;
Parameters
ParameterTypeDescription
gridCellGridCellGridCell to refresh
Returns

void

refreshGridCells

Refreshes a set of Grid Cells

TypeScript
refreshGridCells(gridCells: GridCell[]): void;
Parameters
ParameterTypeDescription
gridCellsGridCell[]GridCells to refresh
Returns

void

refreshGridHeader

Forces a re-render of the Grid Header

TypeScript
refreshGridHeader(): void;
Returns

void

refreshGroupRowNodes

Forces a re-render of all Group Rows (including aggregations)

TypeScript
refreshGroupRowNodes(): void;
Returns

void

refreshRowByPrimaryKey

Forces a re-render of Row with given Primary Key value

TypeScript
refreshRowByPrimaryKey(primaryKey: any): void;
Parameters
ParameterTypeDescription
primaryKeyanyrow primary key
Returns

void

refreshRowNode

Forces a re-render of the given row

TypeScript
refreshRowNode(rowNode: IRowNode): void;
Parameters
ParameterTypeDescription
rowNodeIRowNodeAG Grid Row
Returns

void

refreshRowNodes

Forces re-render of given rows (if none provided, all rows are refreshed)

TypeScript
refreshRowNodes(rowNodes?: IRowNode[]): void;
Parameters
ParameterTypeDescription
rowNodesIRowNode[]AG Grid rows
Returns

void

removeAgGridColumnDefinition

Removes the Column Definition for a given Column.

TypeScript
removeAgGridColumnDefinition(columnId: string): void;
Parameters
ParameterTypeDescription
columnIdstringthe ColumnId to remove
Returns

void

selectAll

Select the whole Grid

TypeScript
selectAll(): void;
Returns

void

selectCellRange

Selects a group of cells in a given range - provide either primary keys or row indexes

TypeScript
selectCellRange(gridCellRange: GridCellRange, clearSelection?: boolean): void;
Parameters
ParameterTypeDescription
gridCellRangeGridCellRangeRange to select
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

selectCellRangeByQuery

Selects a group of cells in a given range using a query

TypeScript
selectCellRangeByQuery(query: string, gridCellRange?: GridCellRange, clearSelection?: boolean): void;
Parameters
ParameterTypeDescription
querystringquery to use to select cells
gridCellRangeGridCellRangeoptional range to filter results
clearSelectionbooleanwhether to clear current selection in grid
Returns

void

selectColumn

Selects a Column in AG Grid

TypeScript
selectColumn(columnId: string): void;
Parameters
ParameterTypeDescription
columnIdstringId of Column to Select
Returns

void

selectColumns

Selects Columns in AG Grid

TypeScript
selectColumns(columnIds: string[]): void;
Parameters
ParameterTypeDescription
columnIdsstring[]Ids of Columns to Select
Returns

void

selectNode

Selects the AG Grid Row Node in AdapTable

TypeScript
selectNode(rowNode: IRowNode, clearSelection: boolean): void;
Parameters
ParameterTypeDescription
rowNodeIRowNodeNode to Select
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

selectNodes

Selects the AG Grid Row Nodes in AdapTable

TypeScript
selectNodes(rowNodes: IRowNode[], clearSelection: boolean): void;
Parameters
ParameterTypeDescription
rowNodesIRowNode[]Nodes to Select
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

selectRow

Selects Row with given Primary Key Value

TypeScript
selectRow(primaryKeyValue: any, clearSelection: boolean): void;
Parameters
ParameterTypeDescription
primaryKeyValueanyPrimary Key Value of Row to select
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

selectRows

Selects Rows with given Primary Key Values

TypeScript
selectRows(primaryKeyValues: any[], clearSelection: boolean): void;
Parameters
ParameterTypeDescription
primaryKeyValuesany[]Primary Key Values of Rows to select
clearSelectionbooleanWhether to clear current selection in grid
Returns

void

setAdaptableSorting

Sorts AdapTable using given Column Sorts

TypeScript
setAdaptableSorting(columnSorts: ColumnSort[]): void;
Parameters
ParameterTypeDescription
columnSortsColumnSort[]Column Sorts to use
Returns

void

setAgGridColumnDefinitions

Sets the Column Definitions for the Grid

TypeScript
setAgGridColumnDefinitions(columnDefinitions: (ColDef | ColGroupDef)[]): void;
Parameters
ParameterType
columnDefinitions(ColDef | ColGroupDef)[]
Returns

void

setCellValue

Updates cell in AdapTable (as an AG Grid edit)

TypeScript
setCellValue(cellUpdateRequest: CellUpdateRequest): void;
Parameters
ParameterTypeDescription
cellUpdateRequestCellUpdateRequest(contains colId, newValue and primaryKeyValue and rowNode)
Returns

void

setCellValues

Updates multiple cells

TypeScript
setCellValues(cellUpdateRequests: CellUpdateRequest[]): void;
Parameters
ParameterType
cellUpdateRequestsCellUpdateRequest[]
Returns

void

setRowGroupColumns

Sets the grid to Row Group

TypeScript
setRowGroupColumns(columnIds: string[]): void;
Parameters
ParameterTypeDescription
columnIdsstring[]ColumnIds to row group
Returns

void

showTransposedView

Opens a window with a transposed view of Grid

TypeScript
showTransposedView(transposeConfig?: TransposeConfig): void;
Parameters
ParameterType
transposeConfigTransposeConfig
Returns

void

undoCellEdit

Reverses a data change (if triggered by cell edit)

TypeScript
undoCellEdit(cellDataChangedInfo: CellDataChangedInfo): boolean;
Parameters
ParameterTypeDescription
cellDataChangedInfoCellDataChangedInfodata change to undo
Returns

boolean

unHighlightAllCells

Unhighlights all highlighted Cells in AdapTable

TypeScript
unHighlightAllCells(): void;
Returns

void

unHighlightAllColumns

Unhighlights all highlighted Columns in AdapTable

TypeScript
unHighlightAllColumns(): void;
Returns

void

unHighlightAllRows

Remove all highlighted rows

TypeScript
unHighlightAllRows(): void;
Returns

void

unHighlightCell

Unhighlights a Cell in AdapTable

TypeScript
unHighlightCell(primaryKeyValue: any, columnId: string): void;
Parameters
ParameterTypeDescription
primaryKeyValueanypkvalue of cell to unhilight
columnIdstringcolumn id of cell to unhilight
Returns

void

unHighlightColumn

Unhighlights a Column in AdapTable

TypeScript
unHighlightColumn(columnId: string): void;
Parameters
ParameterTypeDescription
columnIdstringcolumn to unhighlight
Returns

void

unHighlightRow

Remove highlight from Row

TypeScript
unHighlightRow(primaryKeyValue: RowHighlightInfo['primaryKeyValue']): void;
Parameters
ParameterTypeDescription
primaryKeyValueRowHighlightInfo['primaryKeyValue']value in Primary Key Column
Returns

void

unHighlightRows

Remove highlight from given Rows

TypeScript
unHighlightRows(primaryKeyValues: RowsHighlightInfo['primaryKeyValues']): void;
Parameters
ParameterTypeDescription
primaryKeyValuesRowsHighlightInfo['primaryKeyValues']values in Primary Key Column
Returns

void

updateAgGridColumnDefinition

Updates Column Definition for given Column; use to update NON-STATEFUL AG Grid Column props (which are merged with existing Column Def)

TypeScript
updateAgGridColumnDefinition(columnDefinition: ColDefWithId): void;
Parameters
ParameterTypeDescription
columnDefinitionColDefWithIdthe new Column Definition
Returns

void

updateAgGridColumnDefinitions

Updates Column Definition for given Columns; use to update NON-STATEFUL AG Grid Column props (which are merged with existing Column Def)

TypeScript
updateAgGridColumnDefinitions(columnDefinitions: ColDefWithId[]): void;
Parameters
ParameterType
columnDefinitionsColDefWithId[]
Returns

void

updateAgGridColumnState

Updates Ag Grid Column State for a given Column; use to update STATEFUL AG Grid Column props

TypeScript
updateAgGridColumnState(columnState: ColumnState): void;
Parameters
ParameterTypeDescription
columnStateColumnStatethe AG Grid ColumnState to set
Returns

void

updateAgGridColumnStates

Updates Ag Grid Column State for given Columns; use to update STATEFUL AG Grid Column props

TypeScript
updateAgGridColumnStates(columnStates: ColumnState[]): void;
Parameters
ParameterTypeDescription
columnStatesColumnState[]the AG Grid ColumnState to set
Returns

void

updateGridData

Updates AdapTable (and AG Grid) with rows that have changed

TypeScript
updateGridData(dataRows: any[], config?: DataUpdateConfig): Promise<IRowNode[]>;
Parameters
ParameterTypeDescription
dataRowsany[]rows which have been updated - send whole row and AdapTable take cares of the rest
configDataUpdateConfigbatch option and callback function to run post update
Returns

Promise<IRowNode[]>