ColumnApi
Columns in the grid: lookup by id or friendly name, data type, visibility and which columns can be sorted, filtered, grouped or exported.
export interfaceMethods
| Method | Returns | Description |
|---|---|---|
| addColumnsToSelection(columnIds) | void | Adds (highlights) a group of Columns to any existing selection |
| addColumnToSelection(columnId) | void | Adds (highlights) a Column to any existing selection |
| autosizeAllColumns() | void | Autosizes all Columns in the Grid |
| autosizeColumn(columnId) | void | AutoSizes a Column |
| autosizeColumns(columnIds) | void | Autosizes given Columns |
| doesColumnExist(columnId) | boolean | Checks if Column has already been created |
| getAdaptableDataTypeForCellDataType(cellDataType) | AdaptableColumnDataType | undefined | Resolves the AdapTable DataType for an AG Grid cellDataType key(custom types map via baseDataType / extendsDataType). |
| getAggregatableColumns() | AdaptableColumn[] | Returns all Aggregatable Columns |
| getAGGridColDefForColumnId(columnId) | ColDef | ColGroupDef | Returns AG Grid ColDef for a given ColumnId |
| getAGGridColumnForColumnId(columnId) | Column | Returns the AG Grid Column for a given ColumnId |
| getArrayColumns() | AdaptableColumn[] | Returns all array columns (number, tuple-number, object-number & text) |
| getAvailableCellDataTypes() | AvailableCellDataTypeInfo[] | Application-registered AG Grid cell data types (from the app'sdataTypeDefinitions), for optional special-column Cell Data Type settings.Empty when the app has not registered custom types. Does not include AdapTable baselines (number / text / date / boolean / numberArray). |
| getBooleanColumns() | AdaptableColumn[] | Returns all boolean Columns |
| getColumnDataTypeForColumnId(columnId) | AdaptableColumnDataType | undefined | Returns Data Type for the Column with given ColumnId |
| getColumnForColDef(colDef) | AdaptableColumn | undefined | Returns the AdapTable Column that maps to a given AG Grid ColDef The ColDef is matched to a Column by colId (falling back to field), mirroring how AG Grid derives a Column's colId |
| getColumnIdForFriendlyName(friendlyName) | string | Retrieves ColumnId for Column with given Friendly Name |
| getColumnIdsForFriendlyNames(friendlyNames) | string[] | Retrieves ColumnIds for Columns with given Friendly Names |
| getColumns() | AdaptableColumn[] | Returns all Columns available (including hidden, special) |
| getColumnsByColumnType(columnType) | AdaptableColumn[] | Returns all columns of a given columnType |
| getColumnSummaryForColumnId(columnId) | AdaptableColumnSummary | Gets summary info for a column including filters and unique values |
| getColumnsWithColumnIds(columnIds) | AdaptableColumn[] | Retrieves Adaptable Columns with given ColumnIds |
| getColumnsWithDataType(dataType) | AdaptableColumn[] | Returns all Columns that have given DataType |
| getColumnsWithFriendlyNames(friendlyNames) | AdaptableColumn[] | Retrieves Adaptable Columns with given Friendly names |
| getColumnTypes() | string[] | Returns available columns types defined under columnOptions.columnTypes |
| getColumnWithColumnId(columnId, logWarning) | AdaptableColumn | undefined | Retrieves AdapTable Column with given ColumnId |
| getColumnWithFriendlyName(columnName, logWarning) | AdaptableColumn | Retrieves AdapTable Column with given Friendly name |
| getDateColumns() | AdaptableColumn[] | Returns all Date Columns |
| getDefaultAggFunc(columnId) | string | Returns the default Aggregation Function for a Column |
| getExportableColumns() | AdaptableColumn[] | Returns all Exportable Columns |
| getFilterableColumns() | AdaptableColumn[] | Returns all Filterable Columns |
| getFriendlyNameForColumnId(columnId, layout) | string | Retrieves Friendly Name of Column with given ColumnId |
| getFriendlyNamesForColumnIds(columnIds) | string[] | Retrieves Friendly Names for given ColumnIds |
| getGroupableColumns() | AdaptableColumn[] | Returns all Groupable Columns |
| getNonSpecialColumns() | AdaptableColumn[] | Returns all UI available columns excluding Action, FreeText and Calculated Columns |
| getNumberArrayColumns() | AdaptableColumn[] | Returns all number-array columns |
| getNumericArrayColumns() | AdaptableColumn[] | Returns all numeric array columns (number, tuple-number, object-number) |
| getNumericColumns() | AdaptableColumn[] | Returns all numeric Columns |
| getObjectNumberArrayColumns() | AdaptableColumn[] | Returns all object-number-array columns e.g. [x:1,y:2,x:3,y:4] |
| getPivotableColumns() | AdaptableColumn[] | Returns all Pivotable Columns |
| getPrimaryKeyColumn() | AdaptableColumn | undefined | Retrieves current Primary Key Column in AdapTable. It may be undefined if the primary key is auto-generated, or it is NOT mapped to a column. |
| getQueryableColumns() | AdaptableColumn[] | Returns all Queryable Columns |
| getRowGroupedColumns() | AdaptableColumn[] | Returns all columns currently Row Grouped |
| getSortableColumns() | AdaptableColumn[] | Returns all Sortable Columns |
| getSpecialColumns() | AdaptableColumn[] | Returns any Action, FreeText and Calculated Columns |
| getTextArrayColumns() | AdaptableColumn[] | Returns all string array Columns |
| getTextColumns() | AdaptableColumn[] | Returns all Text Columns |
| getTupleNumberArrayColumns() | AdaptableColumn[] | Returns all tuple-number-array columns e.g. [[1,2],[3,4]] |
| getUIAvailableColumns() | AdaptableColumn[] | Returns all Columns that can be displayed in UI (excludes always hidden cols) |
| getUIHiddenColumns() | AdaptableColumn[] | Returns Columns that are always hidden in UI (but available for Expressions) |
| getVisibleColumns() | AdaptableColumn[] | Returns all visible Columns |
| hasArrayDataType(columnId) | boolean | Checks if the Column with the given columnId has any Array-like DataType (TextArray,NumberArray,TupleNumberArray or ObjectNumberArray) |
| hasBooleanDataType(columnId) | boolean | Checks if the Column with the given columnId has DataType Boolean |
| hasColumnType(columnIdentifier, columnType) | boolean | Checks if the Column with given Column Identifier (columnId or ColDef) has a specific Column Type |
| hasDateDataType(columnId) | boolean | Checks if the Column with the given columnId has DataType Date |
| hasNumberDataType(columnId) | boolean | Checks if the Column with the given columnId has DataType Number |
| hasNumericArrayDataType(columnId) | boolean | Checks if the Column with the given columnId has an Numeric Array-like DataType (NumberArray,TupleNumberArray or ObjectNumberArray) |
| hasTextArrayDataType(columnId) | boolean | Checks if the Column with the given columnId has a Text Array-like DataType (TextArray) |
| hideColumn(columnId) | void | Hides a Column from Grid |
| isActionColumn(columnId) | boolean | Checks if Column with given ColumnId is an Action Column |
| isAgGridGeneratedColumn(columnId) | boolean | Whether column is auto generated by AG Grid (for selection, grouping, pivoting etc) |
| isAutoRowGroupColumn(columnId) | boolean | Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid |
| isAutoRowGroupColumnForMulti(columnId) | boolean | Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'multi' |
| isAutoRowGroupColumnForSingle(columnId) | boolean | Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'single' |
| isCalculatedColumn(columnId) | boolean | Checks if Column with given ColumnId is a Calculated Column |
| isColumnInGrid(columnId) | boolean | Returns true if the given Column exists in the Grid |
| isFdc3Column(columnId) | boolean | Checks if Column with given ColumnId is a FDC3 Column |
| isFreeTextColumn(columnId) | boolean | Checks if Column with given ColumnId is a Free Text Column |
| isPivotAggColumnWithNoPivotColumns(columnId) | boolean | Checks if Column with given ColumnId is a pivot aggregation column in a pivot layout with no pivot columns. When PivotColumns is empty, aggregation columns keep their original IDs instead of getting a 'pivot_' prefix. |
| isPivotResultColumn(columnId) | boolean | Checks if Column with given ColumnId is a pivot Column automatically generated by AG Grid |
| isSelectionColumn(columnId) | boolean | Checks if Column with given ColumnId is a Selection (Checkbox) Column automatically generated by AG Grid |
| isSpecialColumn(columnId) | boolean | Checks if Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column |
| openColumnInfoSettingsPanel(columnId) | void | Opens Settings Panel with Column Info section selected and visible |
| selectAllColumns() | void | Selects all Columns |
| selectColumn(columnId) | void | Selects (highlights) a Column |
| selectColumns(columnIds) | void | Selects (highlights) group of Columns |
| setColumnCaption(columnId, caption) | void | Sets a new Caption / Header for a Column (only for current Layout) |
| showColumn(columnId) | void | Makes a Column visible |
Method Details
addColumnsToSelection
Adds (highlights) a group of Columns to any existing selection
addColumnsToSelection(columnIds: string[]): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIds | string[] | columns to select |
Returns
void
addColumnToSelection
Adds (highlights) a Column to any existing selection
addColumnToSelection(columnId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to select |
Returns
void
autosizeAllColumns
Autosizes all Columns in the Grid
autosizeAllColumns(): void;Returns
void
autosizeColumn
AutoSizes a Column
autosizeColumn(columnId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to autosize |
Returns
void
autosizeColumns
Autosizes given Columns
autosizeColumns(columnIds: string[]): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIds | string[] | Columns to autosize |
Returns
void
doesColumnExist
Checks if Column has already been created
doesColumnExist(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column has already been created
boolean
getAdaptableDataTypeForCellDataType
Resolves the AdapTable DataType for an AG Grid cellDataType key
(custom types map via baseDataType / extendsDataType).
getAdaptableDataTypeForCellDataType(cellDataType: string): AdaptableColumnDataType | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| cellDataType | string | AG Grid cellDataType key |
Returns
The AdapTable data type for that key. undefined when the key is not registered
AdaptableColumnDataType | undefined
getAggregatableColumns
Returns all Aggregatable Columns
getAggregatableColumns(): AdaptableColumn[];Returns
All Aggregatable Columns
getAGGridColDefForColumnId
Returns AG Grid ColDef for a given ColumnId
getAGGridColDefForColumnId(columnId: string): ColDef | ColGroupDef;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to use |
Returns
AG Grid ColDef for a given ColumnId
ColDef | ColGroupDef
getAGGridColumnForColumnId
Returns the AG Grid Column for a given ColumnId
getAGGridColumnForColumnId(columnId: string): Column;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to use |
Returns
The AG Grid Column for a given ColumnId
Column
getArrayColumns
Returns all array columns (number, tuple-number, object-number & text)
getArrayColumns(): AdaptableColumn[];Returns
All array columns (number, tuple-number, object-number & text)
getAvailableCellDataTypes
Application-registered AG Grid cell data types (from the app's
dataTypeDefinitions), for optional special-column Cell Data Type settings.
Empty when the app has not registered custom types. Does not include
AdapTable baselines (number / text / date / boolean / numberArray).
getAvailableCellDataTypes(): AvailableCellDataTypeInfo[];Returns
Application-registered AG Grid cell data types (from the app's dataTypeDefinitions), for optional special-column Cell Data Type settings. Empty when the app has not registered custom types. Does not include AdapTable baselines (number / text / date / boolean / numberArray)
getBooleanColumns
Returns all boolean Columns
getBooleanColumns(): AdaptableColumn[];Returns
All boolean Columns
getColumnDataTypeForColumnId
Returns Data Type for the Column with given ColumnId
getColumnDataTypeForColumnId(columnId: string): AdaptableColumnDataType | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to check |
Returns
Data Type for the Column with given ColumnId. undefined when there is no match
AdaptableColumnDataType | undefined
getColumnForColDef
Returns the AdapTable Column that maps to a given AG Grid ColDef
The ColDef is matched to a Column by colId (falling back to field), mirroring how AG Grid derives a Column's colId
getColumnForColDef(colDef: ColDef): AdaptableColumn | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| colDef | ColDef | AG Grid ColDef to look up |
Returns
The AdapTable Column that maps to a given AG Grid ColDef The ColDef is matched to a Column by colId (falling back to field), mirroring how AG Grid derives a Column's colId. undefined when there is no match
AdaptableColumn | undefined
getColumnIdForFriendlyName
Retrieves ColumnId for Column with given Friendly Name
getColumnIdForFriendlyName(friendlyName: string): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| friendlyName | string | Friendly Name to Lookup |
Returns
ColumnId for Column with given Friendly Name
string
getColumnIdsForFriendlyNames
Retrieves ColumnIds for Columns with given Friendly Names
getColumnIdsForFriendlyNames(friendlyNames: string[]): string[];Parameters
| Parameter | Type | Description |
|---|---|---|
| friendlyNames | string[] | Friendly names to look up |
Returns
ColumnIds for Columns with given Friendly Names
string[]
getColumns
Returns all Columns available (including hidden, special)
getColumns(): AdaptableColumn[];Returns
All Columns available (including hidden, special)
getColumnsByColumnType
Returns all columns of a given columnType
getColumnsByColumnType(columnType: string): AdaptableColumn[];Parameters
| Parameter | Type | Description |
|---|---|---|
| columnType | string | the columnType to filter by |
Returns
All columns of a given columnType
getColumnSummaryForColumnId
Gets summary info for a column including filters and unique values
getColumnSummaryForColumnId(columnId: string): AdaptableColumnSummary;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to summarise |
Returns
Filters and distinct values for the column
getColumnsWithColumnIds
Retrieves Adaptable Columns with given ColumnIds
getColumnsWithColumnIds(columnIds: string[]): AdaptableColumn[];Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIds | string[] | Column Ids to lookup |
Returns
Adaptable Columns with given ColumnIds
getColumnsWithDataType
Returns all Columns that have given DataType
getColumnsWithDataType(dataType: AdaptableColumnDataType): AdaptableColumn[];Parameters
| Parameter | Type | Description |
|---|---|---|
| dataType | AdaptableColumnDataType | the DataType of the Columns to retrieve |
Returns
All Columns that have given DataType
getColumnsWithFriendlyNames
Retrieves Adaptable Columns with given Friendly names
getColumnsWithFriendlyNames(friendlyNames: string[]): AdaptableColumn[];Parameters
| Parameter | Type | Description |
|---|---|---|
| friendlyNames | string[] | Friendly Names to lookup |
Returns
Adaptable Columns with given Friendly names
getColumnTypes
Returns available columns types defined under columnOptions.columnTypes
getColumnTypes(): string[];Returns
Available columns types defined under columnOptions.columnTypes
string[]
getColumnWithColumnId
Retrieves AdapTable Column with given ColumnId
getColumnWithColumnId(columnId: string, logWarning?: boolean): AdaptableColumn | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to lookup |
| logWarning | boolean | Whether to log warning if Column missing |
Returns
AdapTable Column with given ColumnId. undefined when there is no match
AdaptableColumn | undefined
getColumnWithFriendlyName
Retrieves AdapTable Column with given Friendly name
getColumnWithFriendlyName(columnName: string, logWarning?: boolean): AdaptableColumn;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnName | string | Friendly Name to lookup |
| logWarning | boolean | Whether to log warning if Column missing |
Returns
AdapTable Column with given Friendly name
getDateColumns
Returns all Date Columns
getDateColumns(): AdaptableColumn[];Returns
All Date Columns
getDefaultAggFunc
Returns the default Aggregation Function for a Column
getDefaultAggFunc(columnId: string): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to Check |
Returns
The default Aggregation Function for a Column
string
getExportableColumns
Returns all Exportable Columns
getExportableColumns(): AdaptableColumn[];Returns
All Exportable Columns
getFilterableColumns
Returns all Filterable Columns
getFilterableColumns(): AdaptableColumn[];Returns
All Filterable Columns
getFriendlyNameForColumnId
Retrieves Friendly Name of Column with given ColumnId
getFriendlyNameForColumnId(columnId: string, layout?: Layout): string;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to lookup |
| layout | Layout | Layout used when naming an auto row-group column. Defaults to the current Layout |
Returns
Friendly Name of Column with given ColumnId
string
getFriendlyNamesForColumnIds
Retrieves Friendly Names for given ColumnIds
getFriendlyNamesForColumnIds(columnIds: string[]): string[];Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIds | string[] | ColumnIds to lookup |
Returns
Friendly Names for given ColumnIds
string[]
getGroupableColumns
Returns all Groupable Columns
getGroupableColumns(): AdaptableColumn[];Returns
All Groupable Columns
getNonSpecialColumns
Returns all UI available columns excluding Action, FreeText and Calculated Columns
getNonSpecialColumns(): AdaptableColumn[];Returns
All UI available columns excluding Action, FreeText and Calculated Columns
getNumberArrayColumns
Returns all number-array columns
getNumberArrayColumns(): AdaptableColumn[];Returns
All number-array columns
getNumericArrayColumns
Returns all numeric array columns (number, tuple-number, object-number)
getNumericArrayColumns(): AdaptableColumn[];Returns
All numeric array columns (number, tuple-number, object-number)
getNumericColumns
Returns all numeric Columns
getNumericColumns(): AdaptableColumn[];Returns
All numeric Columns
getObjectNumberArrayColumns
Returns all object-number-array columns e.g. [x:1,y:2,x:3,y:4]
getObjectNumberArrayColumns(): AdaptableColumn[];Returns
All object-number-array columns e.g. [x:1,y:2,x:3,y:4]
getPivotableColumns
Returns all Pivotable Columns
getPivotableColumns(): AdaptableColumn[];Returns
All Pivotable Columns
getPrimaryKeyColumn
Retrieves current Primary Key Column in AdapTable. It may be undefined if the primary key is auto-generated, or it is NOT mapped to a column.
getPrimaryKeyColumn(): AdaptableColumn | undefined;Returns
Current Primary Key Column in AdapTable. It may be undefined if the primary key is auto-generated, or it is NOT mapped to a column
AdaptableColumn | undefined
getQueryableColumns
Returns all Queryable Columns
getQueryableColumns(): AdaptableColumn[];Returns
All Queryable Columns
getRowGroupedColumns
Returns all columns currently Row Grouped
getRowGroupedColumns(): AdaptableColumn[];Returns
All columns currently Row Grouped
getSortableColumns
Returns all Sortable Columns
getSortableColumns(): AdaptableColumn[];Returns
All Sortable Columns
getSpecialColumns
Returns any Action, FreeText and Calculated Columns
getSpecialColumns(): AdaptableColumn[];Returns
Any Action, FreeText and Calculated Columns
getTextArrayColumns
Returns all string array Columns
getTextArrayColumns(): AdaptableColumn[];Returns
All string array Columns
getTextColumns
Returns all Text Columns
getTextColumns(): AdaptableColumn[];Returns
All Text Columns
getTupleNumberArrayColumns
Returns all tuple-number-array columns e.g. [[1,2],[3,4]]
getTupleNumberArrayColumns(): AdaptableColumn[];Returns
All tuple-number-array columns e.g. [[1,2],[3,4]]
getUIAvailableColumns
Returns all Columns that can be displayed in UI (excludes always hidden cols)
getUIAvailableColumns(): AdaptableColumn[];Returns
All Columns that can be displayed in UI (excludes always hidden cols)
getUIHiddenColumns
Returns Columns that are always hidden in UI (but available for Expressions)
getUIHiddenColumns(): AdaptableColumn[];Returns
Columns that are always hidden in UI (but available for Expressions)
getVisibleColumns
Returns all visible Columns
getVisibleColumns(): AdaptableColumn[];Returns
All visible Columns
hasArrayDataType
Checks if the Column with the given columnId has any Array-like DataType (TextArray,NumberArray,TupleNumberArray or ObjectNumberArray)
hasArrayDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has any Array-like DataType (TextArray,NumberArray,TupleNumberArray or ObjectNumberArray)
boolean
hasBooleanDataType
Checks if the Column with the given columnId has DataType Boolean
hasBooleanDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has DataType Boolean
boolean
hasColumnType
Checks if the Column with given Column Identifier (columnId or ColDef) has a specific Column Type
hasColumnType(columnIdentifier: string | ColDef, columnType: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIdentifier | string | ColDef | ColumnId or ColDef to check |
| columnType | string | Column Type to check for |
Returns
true when the Column with given Column Identifier (columnId or ColDef) has a specific Column Type
boolean
hasDateDataType
Checks if the Column with the given columnId has DataType Date
hasDateDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has DataType Date
boolean
hasNumberDataType
Checks if the Column with the given columnId has DataType Number
hasNumberDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has DataType Number
boolean
hasNumericArrayDataType
Checks if the Column with the given columnId has an Numeric Array-like DataType (NumberArray,TupleNumberArray or ObjectNumberArray)
hasNumericArrayDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has an Numeric Array-like DataType (NumberArray,TupleNumberArray or ObjectNumberArray)
boolean
hasTextArrayDataType
Checks if the Column with the given columnId has a Text Array-like DataType (TextArray)
hasTextArrayDataType(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column ID |
Returns
true when the Column with the given columnId has a Text Array-like DataType (TextArray)
boolean
hideColumn
Hides a Column from Grid
hideColumn(columnId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to hide |
Returns
void
isActionColumn
Checks if Column with given ColumnId is an Action Column
isActionColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is an Action Column
boolean
isAgGridGeneratedColumn
Whether column is auto generated by AG Grid (for selection, grouping, pivoting etc)
isAgGridGeneratedColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | column to check |
Returns
true when column is auto generated by AG Grid (for selection, grouping, pivoting etc)
boolean
isAutoRowGroupColumn
Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid
isAutoRowGroupColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a row-group Column automatically generated by AG Grid
boolean
isAutoRowGroupColumnForMulti
Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'multi'
isAutoRowGroupColumnForMulti(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'multi'
boolean
isAutoRowGroupColumnForSingle
Checks if Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'single'
isAutoRowGroupColumnForSingle(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a row-group Column automatically generated by AG Grid, for row-grouping with group display type = 'single'
boolean
isCalculatedColumn
Checks if Column with given ColumnId is a Calculated Column
isCalculatedColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a Calculated Column
boolean
isColumnInGrid
Returns true if the given Column exists in the Grid
isColumnInGrid(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to check |
Returns
true when the given Column exists in the Grid
boolean
isFdc3Column
Checks if Column with given ColumnId is a FDC3 Column
isFdc3Column(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to check |
Returns
true when Column with given ColumnId is a FDC3 Column
boolean
isFreeTextColumn
Checks if Column with given ColumnId is a Free Text Column
isFreeTextColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a Free Text Column
boolean
isPivotAggColumnWithNoPivotColumns
Checks if Column with given ColumnId is a pivot aggregation column in a pivot layout with no pivot columns. When PivotColumns is empty, aggregation columns keep their original IDs instead of getting a 'pivot_' prefix.
isPivotAggColumnWithNoPivotColumns(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a pivot aggregation column in a pivot layout with no pivot columns. When PivotColumns is empty, aggregation columns keep their original IDs instead of getting a 'pivot_' prefix
boolean
isPivotResultColumn
Checks if Column with given ColumnId is a pivot Column automatically generated by AG Grid
isPivotResultColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a pivot Column automatically generated by AG Grid
boolean
isSelectionColumn
Checks if Column with given ColumnId is a Selection (Checkbox) Column automatically generated by AG Grid
isSelectionColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a Selection (Checkbox) Column automatically generated by AG Grid
boolean
isSpecialColumn
Checks if Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column
isSpecialColumn(columnId: string): boolean;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | ColumnId to check |
Returns
true when Column with given ColumnId is a Special (i.e. calculated, freetext or action) Column
boolean
openColumnInfoSettingsPanel
Opens Settings Panel with Column Info section selected and visible
openColumnInfoSettingsPanel(columnId?: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Optional Column to pre-select in the panel |
Returns
void
selectAllColumns
Selects all Columns
selectAllColumns(): void;Returns
void
selectColumn
Selects (highlights) a Column
selectColumn(columnId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to select |
Returns
void
selectColumns
Selects (highlights) group of Columns
selectColumns(columnIds: string[]): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnIds | string[] | columns to select |
Returns
void
setColumnCaption
Sets a new Caption / Header for a Column (only for current Layout)
setColumnCaption(columnId: string, caption: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to Update |
| caption | string | New Caption to display |
Returns
void
showColumn
Makes a Column visible
showColumn(columnId: string): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| columnId | string | Column to show |
Returns
void