Vue Data GridGrid Options Reference

Implements the GridOptions<TData> interface.

The grid will respond to property updates unless they are marked as Initial. See Updating Grid Options.

Accessories

statusBarCopy
{ statusPanels: StatusPanelDef[] }
Specifies the status bar components to use in the status bar.
sideBarCopy
SideBarDef | string | string[] | boolean | null
Specifies the side bar components.
getContextMenuItemsCopy
GetContextMenuItems
For customising the context menu.
suppressContextMenuCopy
boolean
default: false
Set to true to not show the context menu. Use if you don't want to use the default 'right click' context menu.
preventDefaultOnContextMenuCopy
boolean
default: false
When using suppressContextMenu, you can use the onCellContextMenu function to provide your own code to handle cell contextmenu events. This flag is useful to prevent the browser from showing its default context menu.
allowContextMenuWithControlKeyCopy
boolean
default: false
Allows context menu to show, even when ^ Ctrl key is held down. Default: false
getMainMenuItemsCopy
GetMainMenuItems
For customising the main 'column header' menu.
columnMenuCopy
'legacy' | 'new'
default: 'new'
Changes the display type of the column menu. 'new' just displays the main list of menu items. 'legacy' displays a tabbed menu.
suppressMenuHideCopy
boolean
default: true
Only recommended for use if columnMenu = 'legacy'. When true, the column menu button will always be shown. When false, the column menu button will only show when the mouse is over the column header. When using columnMenu = 'legacy', this will default to false instead of true.
DOM element to use as the popup parent for grid popups (context menu, column menu etc).
postProcessPopupCopy
Function
Allows user to process popups after they are created. Applications can use this if they want to, for example, reposition the popup.

Clipboard

See Clipboard for more information.

copyHeadersToClipboardCopy
boolean
default: false
Set to true to also include headers when copying to clipboard using ^ Ctrl+C clipboard. Default: false
copyGroupHeadersToClipboardCopy
boolean
default: false
Set to true to also include group headers when copying to clipboard using ^ Ctrl+C clipboard. Default: false
clipboardDelimiterCopy
string
default: '\t'
Specify the delimiter to use when copying to clipboard.
suppressCutToClipboardCopy
boolean
default: false
Set to true to block cut operations within the grid.
suppressLastEmptyLineOnPasteCopy
boolean
default: false
Set to true to work around a bug with Excel (Windows) that adds an extra empty line at the end of ranges copied to the clipboard.
suppressClipboardPasteCopy
boolean
default: false
Set to true to turn off paste operations within the grid.
suppressClipboardApiCopy
boolean
default: false
Set to true to stop the grid trying to use the Clipboard API, if it is blocked, and immediately fallback to the workaround.
processCellForClipboardCopy
Function
Allows you to process cells for the clipboard. Handy if for example you have Date objects that need to have a particular format if importing into Excel.
processHeaderForClipboardCopy
Function
Allows you to process header values for the clipboard.
processGroupHeaderForClipboardCopy
Function
Allows you to process group header values for the clipboard.
processCellFromClipboardCopy
Function
Allows you to process cells from the clipboard. Handy if for example you have number fields and want to block non-numbers from getting into the grid.
sendToClipboardCopy
Function
Allows you to get the data that would otherwise go to the clipboard. To be used when you want to control the 'copy to clipboard' operation yourself.
processDataFromClipboardCopy
Function
Allows complete control of the paste operation, including cancelling the operation (so nothing happens) or replacing the data with other data.

Column Definitions

See Column / Column Group definitions for more information

Array of Column / Column Group definitions.
defaultColDefCopy
A default column definition. Items defined in the actual column definitions get precedence.
defaultColGroupDefCopy
Partial<ColGroupDef>
A default column group definition. All column group definitions will use these properties. Items defined in the actual column group definition get precedence.
columnTypesCopy
{ [key: string]: ColTypeDef }
An object map of custom column types which contain groups of properties that column definitions can reuse by referencing in their type property.
dataTypeDefinitionsCopy
{ [cellDataType: string]: DataTypeDefinition; }
An object map of cell data types to their definitions. Cell data types can either override/update the pre-defined data types ('text', 'number', 'boolean', 'date', 'dateString' or 'object'), or can be custom data types.
maintainColumnOrderCopy
boolean
default: false
Keeps the order of Columns maintained after new Column Definitions are updated.
enableStrictPivotColumnOrderCopy
boolean
default: false
Resets pivot column order when impacted by filters, data or configuration changes
suppressFieldDotNotationCopy
boolean
default: false
If true, then dots in field names (e.g. 'address.firstLine') are not treated as deep references. Allows you to use dots in your field name if you prefer.

Column Headers

See Column Headers for more information.

headerHeightCopy
number
The height in pixels for the row containing the column label header. If not specified, it uses the theme value of header-height.
groupHeaderHeightCopy
number
The height in pixels for the rows containing header column groups. If not specified, it uses headerHeight.
floatingFiltersHeightCopy
number
The height in pixels for the row containing the floating filters. If not specified, it uses the theme value of header-height.
pivotHeaderHeightCopy
number
The height in pixels for the row containing the columns when in pivot mode. If not specified, it uses headerHeight.
pivotGroupHeaderHeightCopy
number
The height in pixels for the row containing header column groups when in pivot mode. If not specified, it uses groupHeaderHeight.

Column Moving

See Column Moving for more information.

allowDragFromColumnsToolPanelCopy
boolean
default: false
Allow reordering and pinning columns by dragging columns from the Columns Tool Panel to the grid.
suppressMovableColumnsCopy
boolean
default: false
Set to true to suppress column moving, i.e. to make the columns fixed position.
suppressMoveWhenColumnDraggingCopy
boolean
default: false
Set to true to suppress moving columns while dragging the Column Header. This option highlights the position where the column will be placed and it will only move it on mouse up.
suppressColumnMoveAnimationCopy
boolean
default: false
If true, the ag-column-moving class is not added to the grid while columns are moving. In the default themes, this results in no animation when moving columns. Default: false
suppressDragLeaveHidesColumnsCopy
boolean
default: false
If true, when you drag a column out of the grid (e.g. to the group zone) the column is not hidden.

Column Pinning

See Column Pinning for more information.

processUnpinnedColumnsCopy
Function
Allows the user to process the columns being removed from the pinned section because the viewport is too small to accommodate them. Returns an array of columns to be removed from the pinned areas.

Column Sizing

See Column Sizing for more information.

colResizeDefaultCopy
'shift'
Set to 'shift' to have shift-resize as the default resize operation (same as user holding down ⇧ Shift while resizing).
autoSizeStrategyCopy
| SizeColumnsToFitGridStrategy | SizeColumnsToFitProvidedWidthStrategy | SizeColumnsToContentStrategy
Auto-size the columns when the grid is loaded. Can size to fit the grid width, fit a provided width, or fit the cell contents.
suppressAutoSizeCopy
boolean
default: false
Suppresses auto-sizing columns for columns. In other words, double clicking a column's header's edge will not auto-size.
autoSizePaddingCopy
number
default: 20
Number of pixels to add to a column width after the auto-sizing calculation. Set this if you want to add extra room to accommodate (for example) sort icons, or some other dynamic nature of the header.
skipHeaderOnAutoSizeCopy
boolean
default: false
Set this to true to skip the headerName when autoSize is called by default.

Components

See Components for more information.

componentsCopy
{ [p: string]: any }
A map of component names to components.

Editing

See Cell Editing for more information.

editTypeCopy
'fullRow'
Set to 'fullRow' to enable Full Row Editing. Otherwise leave blank to edit one cell at a time.
singleClickEditCopy
boolean
default: false
Set to true to enable Single Click Editing for cells, to start editing with a single click.
suppressClickEditCopy
boolean
default: false
Set to true so that neither single nor double click starts editing.
stopEditingWhenCellsLoseFocusCopy
boolean
default: false
Set this to true to stop cell editing when grid loses focus. The default is that the grid stays editing until focus goes onto another cell.
enterNavigatesVerticallyCopy
boolean
default: false
Set to true along with enterNavigatesVerticallyAfterEdit to have Excel-style behaviour for the ↵ Enter key, i.e. pressing the ↵ Enter key will move down to the cell beneath. Default: false
enterNavigatesVerticallyAfterEditCopy
boolean
default: false
Set to true along with enterNavigatesVertically to have Excel-style behaviour for the ↵ Enter key, i.e. pressing the ↵ Enter key will move down to the cell beneath. Default: false
enableCellEditingOnBackspaceCopy
boolean
Forces Cell Editing to start when backspace is pressed. This is only relevant for MacOS users.
undoRedoCellEditingCopy
boolean
Set to true to enable Undo / Redo while editing.
undoRedoCellEditingLimitCopy
number
default: 10
Set the size of the undo / redo stack.
readOnlyEditCopy
boolean
default: false
Set to true to stop the grid updating data after Edit, Clipboard and Fill Handle operations. When this is set, it is intended the application will update the data, eg in an external immutable store, and then pass the new dataset to the grid.
Note: rowNode.setDataValue() does not update the value of the cell when this is True, it fires onCellEditRequest instead.

Export

See Export for more information.

defaultCsvExportParamsCopy
A default configuration object used to export to CSV.
suppressCsvExportCopy
boolean
default: false
Prevents the user from exporting the grid to CSV.
defaultExcelExportParamsCopy
A default configuration object used to export to Excel.
suppressExcelExportCopy
boolean
default: false
Prevents the user from exporting the grid to Excel.
A list (array) of Excel styles to be used when exporting to Excel with styles.

Filtering

See Filtering for more information.

quickFilterTextCopy
string
Rows are filtered using this text as a Quick Filter. Only supported for Client-Side Row Model.
cacheQuickFilterCopy
boolean
default: false
Set to true to turn on the Quick Filter cache, used to improve performance when using the Quick Filter.
includeHiddenColumnsInQuickFilterCopy
boolean
default: false
Hidden columns are excluded from the Quick Filter by default. To include hidden columns, set to true.
quickFilterParserCopy
Function
Changes how the Quick Filter splits the Quick Filter text into search terms.
quickFilterMatcherCopy
Function
Changes the matching logic for whether a row passes the Quick Filter.
applyQuickFilterBeforePivotOrAggCopy
boolean
default: false
When pivoting, Quick Filter is only applied on the pivoted data (or aggregated data if groupAggFiltering = true). Set to true to apply Quick Filter before pivoting (/aggregating) instead.
isExternalFilterPresentCopy
Function
Grid calls this method to know if an external filter is present.
doesExternalFilterPassCopy
Function
Should return true if external filter passes, otherwise false.
excludeChildrenWhenTreeDataFilteringCopy
boolean
default: false
Set to true to override the default tree data filtering behaviour to instead exclude child nodes from filter results.
suppressSetFilterByDefaultCopy
boolean
default: false
When using AG Grid Enterprise, the Set Filter is used by default when filter: true is set on column definitions. Set to true to prevent this and instead use the Text Filter, Number Filter or Date Filter based on the cell data type, the same as when using AG Grid Community.
enableAdvancedFilterCopy
boolean
default: false
Set to true to enable the Advanced Filter.
includeHiddenColumnsInAdvancedFilterCopy
boolean
default: false
Hidden columns are excluded from the Advanced Filter by default. To include hidden columns, set to true.
advancedFilterParentCopy
DOM element to use as the parent for the Advanced Filter to allow it to appear outside of the grid. Set to null or undefined to appear inside the grid.
advancedFilterBuilderParamsCopy
IAdvancedFilterBuilderParams
Customise the parameters passed to the Advanced Filter Builder.
alwaysPassFilterCopy
Function
Allows rows to always be displayed, even if they don't match the applied filtering. Return true for the provided row to always be displayed. Only works with the Client-Side Row Model.

Integrated Charts

See Integrated Charts for more information.

enableChartsCopy
boolean
default: false
Set to true to Enable Charts.
getChartToolbarItemsCopy
Function
Callback to be used to customise the chart toolbar items.
createChartContainerCopy
Function
Callback to enable displaying the chart in an alternative chart container.
chartThemesCopy
string[]
default: ['ag-default', 'ag-material', 'ag-sheets', 'ag-polychroma', 'ag-vivid'];
The list of chart themes that a user can choose from in the chart panel.
customChartThemesCopy
{ [name: string]: AgChartTheme }
A map containing custom chart themes.
Chart theme overrides applied to all themes.
chartToolPanelsDefCopy
ChartToolPanelsDef
Allows customisation of the Chart Tool Panels, such as changing the tool panels visibility and order, as well as choosing which charts should be displayed in the chart panel.
chartMenuItemsCopy
(DefaultChartMenuItem | MenuItemDef)[] | GetChartMenuItems
Get chart menu items. Only applies when using AG Charts Enterprise.

Keyboard Navigation

See Keyboard Navigation for more information.

focusGridInnerElementCopy
Function
Allows overriding the element that will be focused when the grid receives focus from outside elements (tabbing into the grid). Returns: True if this function should override the grid's default behavior, False to allow the grid's default behavior.
navigateToNextHeaderCopy
Function
Allows overriding the default behaviour for when user hits navigation (arrow) key when a header is focused. Return the next Header position to navigate to or null to stay on current header.
tabToNextHeaderCopy
Function
Allows overriding the default behaviour for when user hits Tab key when a header is focused. Return the next header position to navigate to, true to stay on the current header, or false to let the browser handle the tab behaviour.
navigateToNextCellCopy
Function
Allows overriding the default behaviour for when user hits navigation (arrow) key when a cell is focused. Return the next Cell position to navigate to or null to stay on current cell.
tabToNextCellCopy
Function
Allows overriding the default behaviour for when user hits Tab key when a cell is focused. Return the next cell position to navigate to, true to stay on the current cell, or false to let the browser handle the tab behaviour.

Loading Cell Renderers

See loadingCellRenderer for more information.

loadingCellRendererCopy
any
Provide your own loading cell renderer to use when data is loading via a DataSource.
loadingCellRendererParamsCopy
any
Params to be passed to the loadingCellRenderer component.
loadingCellRendererSelectorCopy
LoadingCellRendererSelectorFunc
Callback to select which loading cell renderer to be used when data is loading via a DataSource.

Localisation

See Localisation for more information.

localeTextCopy
{ [key: string]: string }
A map of key->value pairs for localising text within the grid.
getLocaleTextCopy
Function
A callback for localising text within the grid.

Master Detail

See Master Detail for more information.

masterDetailCopy
boolean
default: false
Set to true to enable Master Detail.
isRowMasterCopy
IsRowMaster
Callback to be used with Master Detail to determine if a row should be a master row. If false is returned no detail row will exist for this row.
detailCellRendererCopy
any
Provide a custom detailCellRenderer to use when a master row is expanded.
detailCellRendererParamsCopy
any
Specifies the params to be used by the Detail Cell Renderer. Can also be a function that provides the params to enable dynamic definitions of the params.
detailRowHeightCopy
number
Set fixed height in pixels for each detail row.
detailRowAutoHeightCopy
boolean
Set to true to have the detail grid dynamically change it's height to fit it's rows.
embedFullWidthRowsCopy
boolean
Set to true to have the Full Width Rows embedded in grid's main container so they can be scrolled horizontally.
keepDetailRowsCopy
boolean
default: false
Set to true to keep detail rows for when they are displayed again.
keepDetailRowsCountCopy
number
default: 10
Sets the number of details rows to keep.

Miscellaneous

initialStateCopy
GridState
Initial state for the grid. Only read once on initialization. Can be used in conjunction with api.getState() to save and restore grid state.
alignedGridsCopy
AlignedGrid[] | (() => AlignedGrid[])
A list of grids to treat as Aligned Grids. Provide a list if the grids / apis already exist or return via a callback to allow the aligned grids to be retrieved asynchronously. If grids are aligned then the columns and horizontal scrolling will be kept in sync.
contextCopy
Provides a context object that is provided to different callbacks the grid uses. Used for passing additional information to the callbacks used by your application.
tabIndexCopy
number
default: 0
Change this value to set the tabIndex order of the Grid within your application.
rowBufferCopy
number
default: 10
The number of rows rendered outside the viewable area the grid renders. Having a buffer means the grid will have rows ready to show as the user slowly scrolls vertically.
rowNumbersCopy
boolean | RowNumbersOptions
default: false
Configure the Row Numbers Feature.
findSearchValueCopy
string
Text to find within the grid.
findOptionsCopy
FindOptions
Options for the Find feature.
valueCacheCopy
boolean
default: false
Set to true to turn on the value cache.
valueCacheNeverExpiresCopy
boolean
default: false
Set to true to configure the value cache to not expire after data updates.
enableCellExpressionsCopy
boolean
default: false
Set to true to allow cell expressions.
getDocumentCopy
Function
Allows overriding what document is used. Currently used by Drag and Drop (may extend to other places in the future). Use this when you want the grid to use a different document than the one available on the global scope. This can happen if docking out components (something which Electron supports)
suppressTouchCopy
boolean
default: false
Disables touch support (but does not remove the browser's efforts to simulate mouse events on touch).
dragAndDropImageComponentCopy
Provide a custom drag and drop image component.
suppressFocusAfterRefreshCopy
boolean
default: false
Set to true to not set focus back on the grid after a refresh. This can avoid issues where you want to keep the focus on another part of the browser.
suppressChangeDetectionCopy
boolean
default: false
Disables change detection.
debugCopy
boolean
default: false
Set this to true to enable debug information from the grid and related components. Will result in additional logging being output, but very useful when investigating problems.

Overlays

See Overlays for more information.

loadingCopy
boolean
Show or hide the loading overlay.
overlayLoadingTemplateCopy
string
Provide a HTML string to override the default loading overlay. Supports non-empty plain text or HTML with a single root element.
loadingOverlayComponentCopy
Provide a custom loading overlay component.
loadingOverlayComponentParamsCopy
any
Customise the parameters provided to the loading overlay component.
suppressNoRowsOverlayCopy
boolean
default: false
Set to true to prevent the no-rows overlay being shown when there is no row data.
overlayNoRowsTemplateCopy
string
Provide a HTML string to override the default no-rows overlay. Supports non-empty plain text or HTML with a single root element.
noRowsOverlayComponentCopy
Provide a custom no rows overlay component.
noRowsOverlayComponentParamsCopy
any
Customise the parameters provided to the no-rows overlay component.

Pagination

See Row Pagination for more information.

paginationCopy
boolean
default: false
Set whether pagination is enabled.
paginationPageSizeCopy
number
default: 100
How many rows to load per page. If paginationAutoPageSize is specified, this property is ignored.
paginationPageSizeSelectorCopy
number[] | boolean
default: true
Determines if the page size selector is shown in the pagination panel or not. Set to an array of values to show the page size selector with custom list of possible page sizes. Set to true to show the page size selector with the default page sizes [20, 50, 100]. Set to false to hide the page size selector.
paginationNumberFormatterCopy
Function
Allows user to format the numbers in the pagination panel, i.e. 'row count' and 'page number' labels. This is for pagination panel only, to format numbers inside the grid's cells (i.e. your data), then use valueFormatter in the column definitions.
paginationAutoPageSizeCopy
boolean
default: false
Set to true so that the number of rows to load per page is automatically adjusted by the grid so each page shows enough rows to just fill the area designated for the grid. If false, paginationPageSize is used.
paginateChildRowsCopy
boolean
default: false
Set to true to have pages split children of groups when using Row Grouping or detail rows with Master Detail.
suppressPaginationPanelCopy
boolean
default: false
If true, the default grid controls for navigation are hidden. This is useful if pagination=true and you want to provide your own pagination controls. Otherwise, when pagination=true the grid automatically shows the necessary controls at the bottom so that the user can navigate through the different pages.

Rendering

animateRowsCopy
boolean
default: true
Set to false to disable Row Animation which is enabled by default.
cellFlashDurationCopy
number
default: 500
Sets the duration in milliseconds of how long a cell should remain in its "flashed" state. If 0, the cell will not flash.
cellFadeDurationCopy
number
default: 1000
Sets the duration in milliseconds of how long the "flashed" state animation takes to fade away after the timer set by cellFlashDuration has completed.
allowShowChangeAfterFilterCopy
boolean
default: false
Set to true to have cells flash after data changes even when the change is due to filtering.
domLayoutCopy
DomLayoutType
default: 'normal'
Switch between layout options. See Printing and Auto Height. Default: normal
ensureDomOrderCopy
boolean
default: false
When true, the order of rows and columns in the DOM are consistent with what is on screen. Disables row animations.
getBusinessKeyForNodeCopy
Function
Return a business key for the node. If implemented, each row in the DOM will have an attribute row-business-key='abc' where abc is what you return as the business key. This is useful for automated testing, as it provides a way for your tool to identify rows based on unique business keys.
gridIdCopy
string
Provide a custom gridId for this instance of the grid. Value will be set on the root DOM node using the attribute grid-id as well as being accessible via the gridApi.getGridId() method.
processRowPostCreateCopy
Function
Callback fired after the row is rendered into the DOM. Should not be used to initiate side effects.
enableRtlCopy
boolean
default: false
Set to true to operate the grid in RTL (Right to Left) mode.
suppressColumnVirtualisationCopy
boolean
default: false
Set to true so that the grid doesn't virtualise the columns. For example, if you have 100 columns, but only 10 visible due to scrolling, all 100 will always be rendered.
suppressRowVirtualisationCopy
boolean
default: false
Set to true so that the grid doesn't virtualise the rows. For example, if you have 100 rows, but only 10 visible due to scrolling, all 100 will always be rendered.
suppressMaxRenderedRowRestrictionCopy
boolean
default: false
By default the grid has a limit of rendering a maximum of 500 rows at once (remember the grid only renders rows you can see, so unless your display shows more than 500 rows without vertically scrolling this will never be an issue).
This is only relevant if you are manually setting rowBuffer to a high value (rendering more rows than can be seen), or suppressRowVirtualisation is true, or if your grid height is able to display more than 500 rows at once.
enableCellSpanCopy
boolean
default: false
When true, enables the cell span feature allowing for the use of the colDef.spanRows property.

Row Aggregation

See Aggregation for more information

aggFuncsCopy
{ [key: string]: IAggFunc }
A map of 'function name' to 'function' for custom aggregation functions.
groupTotalRowCopy
'top' | 'bottom' | UseGroupTotalRow
When provided, an extra row group total row will be inserted into row groups at the specified position, to display when the group is expanded. This row will contain the aggregate values for the group. If a callback function is provided, it can be used to selectively determine which groups will have a total row added.
grandTotalRowCopy
'top' | 'bottom'
When provided, an extra grand total row will be inserted into the grid at the specified position. This row displays the aggregate totals of all rows in the grid.
suppressAggFuncInHeaderCopy
boolean
default: false
When true, column headers won't include the aggFunc name, e.g. 'sum(Bank Balance)' will just be 'Bank Balance'.
aggregateOnlyChangedColumnsCopy
boolean
default: false
When using change detection, only the updated column will be re-aggregated.
suppressAggFilteredOnlyCopy
boolean
default: false
Set to true so that aggregations are not impacted by filtering.
groupAggFilteringCopy
boolean | IsRowFilterable
default: false
Set to determine whether filters should be applied on aggregated group values.
groupSuppressBlankHeaderCopy
boolean
default: false
If true, and showing footer, aggregate data will always be displayed at both the header and footer levels. This stops the possibly undesirable behaviour of the header details 'jumping' to the footer on expand.
suppressStickyTotalRowCopy
boolean | 'grand' | 'group'
Suppress the sticky behaviour of the total rows, can be suppressed individually by passing 'grand' or 'group'.
alwaysAggregateAtRootLevelCopy
boolean
default: false
When using aggregations, the grid will always calculate the root level aggregation value.
getGroupRowAggCopy
Function
Callback to use when you need access to more then the current column for aggregation.

Row Drag and Drop

See Row Dragging for more information.

rowDragManagedCopy
boolean
default: false
Set to true to enable Managed Row Dragging.
rowDragEntireRowCopy
boolean
default: false
Set to true to enable clicking and dragging anywhere on the row without the need for a drag handle.
rowDragMultiRowCopy
boolean
default: false
Set to true to enable dragging multiple rows at the same time.
suppressRowDragCopy
boolean
default: false
Set to true to suppress row dragging.
suppressMoveWhenRowDraggingCopy
boolean
default: false
Set to true to suppress moving rows while dragging the rowDrag waffle. This option highlights the position where the row will be placed and it will only move the row on mouse up.
rowDragTextCopy
Function
A callback that should return a string to be displayed by the rowDragComp while dragging a row. If this callback is not set, the current cell value will be used. If the rowDragText callback is set in the ColDef it will take precedence over this, except when rowDragEntireRow=true.

Row Full Width

See Full Width Rows for more information.

fullWidthCellRendererCopy
any
Provide your own cell renderer component to use for full width rows.
fullWidthCellRendererParamsCopy
any
Customise the parameters provided to the fullWidthCellRenderer component.

Row Grouping

See Row Grouping for more information.

groupDisplayTypeCopy
RowGroupingDisplayType
Specifies how the results of row grouping should be displayed. The options are:
  • 'singleColumn': single group column automatically added by the grid.
  • 'multipleColumns': a group column per row group is added automatically.
  • 'groupRows': group rows are automatically added instead of group columns.
  • 'custom': informs the grid that group columns will be provided.
  • autoGroupColumnDefCopy
    Allows specifying the group 'auto column' if you are not happy with the default. If grouping, this column definition is included as the first column in the grid. If not grouping, this column is not included.
    groupRowRendererCopy
    any
    Provide the Cell Renderer to use when groupDisplayType = 'groupRows'.
    groupRowRendererParamsCopy
    any
    Customise the parameters provided to the groupRowRenderer component.
    showOpenedGroupCopy
    boolean
    default: false
    Shows the open group in the group column for non-group rows.
    groupHideOpenParentsCopy
    boolean
    default: false
    Set to true to hide parents that are open. When used with multiple columns for showing groups, it can give a more pleasing user experience.
    groupHideParentOfSingleChildCopy
    boolean | 'leafGroupsOnly'
    default: false
    Enable to display the child row in place of the group row when the group only has a single child.
    initialGroupOrderComparatorCopy
    Function
    Allows default sorting of groups.
    groupAllowUnbalancedCopy
    boolean
    default: false
    Set to true to prevent the grid from creating a '(Blanks)' group for nodes which do not belong to a group, and display the unbalanced nodes alongside group nodes.
    groupMaintainOrderCopy
    boolean
    default: false
    When true, preserves the current group order when sorting on non-group columns.
    groupDefaultExpandedCopy
    number
    default: 0
    If grouping, set to the number of levels to expand by default, e.g. 0 for none, 1 for first level only, etc. Set to -1 to expand everything.
    isGroupOpenByDefaultCopy
    Function
    (Client-side Row Model only) Allows groups to be open by default.
    suppressGroupRowsStickyCopy
    boolean
    default: false
    Set to true prevent Group Rows from sticking to the top of the grid.
    rowGroupPanelShowCopy
    'always' | 'onlyWhenGrouping' | 'never'
    default: 'never'
    When to show the 'row group panel' (where you drag rows to group) at the top.
    rowGroupPanelSuppressSortCopy
    boolean
    default: false
    Set to true to suppress sort indicators and actions from the row group panel.
    groupLockGroupColumnsCopy
    number
    default: 0
    If grouping, locks the group settings of a number of columns, e.g. 0 for no group locking. 1 for first group column locked, -1 for all group columns locked.
    suppressDragLeaveHidesColumnsCopy
    boolean
    default: false
    By default, dragging a column out of the grid, i.e. to the Row Group Panel, it will be hidden in the grid. This property prevents the column becoming hidden in the grid. Default: false
    suppressGroupChangesColumnVisibilityCopy
    boolean | 'suppressHideOnGroup' | 'suppressShowOnUngroup'
    default: false
    Enable to prevent column visibility changing when grouped columns are changed.

    Row Pinning

    Row data uses the generic type TData if provided via GridOptions<TData>. Otherwise TData will default to any.

    See Row Pinning for more information.

    pinnedTopRowDataCopy
    any[]
    Data to be displayed as pinned top rows in the grid.
    pinnedBottomRowDataCopy
    any[]
    Data to be displayed as pinned bottom rows in the grid.

    Row Pivoting

    See Pivot for more information

    pivotModeCopy
    boolean
    default: false
    Set to true to enable pivot mode.
    pivotPanelShowCopy
    'always' | 'onlyWhenPivoting' | 'never'
    default: 'never'
    When to show the 'pivot panel' (where you drag rows to pivot) at the top. Note that the pivot panel will never show if pivotMode is off.
    pivotDefaultExpandedCopy
    number
    default: 0
    If pivoting, set to the number of column group levels to expand by default, e.g. 0 for none, 1 for first level only, etc. Set to -1 to expand everything.
    pivotRowTotalsCopy
    'before' | 'after'
    When set and the grid is in pivot mode, automatically calculated totals will appear for each value column in the position specified.
    pivotSuppressAutoColumnCopy
    boolean
    default: false
    If true, the grid will not swap in the grouping column when pivoting. Useful if pivoting using Server Side Row Model or Viewport Row Model and you want full control of all columns including the group column.
    pivotMaxGeneratedColumnsCopy
    number
    default: -1
    The maximum number of generated columns before the grid halts execution. Upon reaching this number, the grid halts generation of columns and triggers a pivotMaxColumnsExceeded event. -1 for no limit.
    processPivotResultColDefCopy
    Function
    Callback for the mutation of the generated pivot result column definitions
    processPivotResultColGroupDefCopy
    Function
    Callback for the mutation of the generated pivot result column group definitions
    suppressExpandablePivotGroupsCopy
    boolean
    default: false
    When enabled, pivot column groups will appear 'fixed', without the ability to expand and collapse the column groups.
    functionsReadOnlyCopy
    boolean
    default: false
    If true, then row group, pivot and value aggregation will be read-only from the GUI. The grid will display what values are used for each, but will not allow the user to change the selection.
    removePivotHeaderRowWhenSingleValueColumnCopy
    boolean
    default: false
    Set to true to omit the value Column header when there is only a single value column.

    RowModel

    See Row Model for more information.

    rowModelTypeCopy
    RowModelType
    default: 'clientSide'
    Sets the row model type.
    getRowIdCopy
    GetRowIdFunc
    Provide a pure function that returns a string ID to uniquely identify a given row. This enables the grid to work optimally with data changes and updates.

    RowModel: Client-Side

    Row data uses the generic type TData if provided via GridOptions<TData>. Otherwise TData will default to any.

    rowDataCopy
    TData[] | null
    Set the data to be displayed as rows in the grid.
    resetRowDataOnUpdateCopy
    boolean
    default: false
    When enabled, getRowId() callback is implemented and new Row Data is set, the grid will disregard all previous rows and treat the new Row Data as new data. As a consequence, all Row State (eg selection, rendered rows) will be reset.
    asyncTransactionWaitMillisCopy
    number
    How many milliseconds to wait before executing a batch of async transactions.
    suppressModelUpdateAfterUpdateTransactionCopy
    boolean
    default: false
    Prevents Transactions changing sort, filter, group or pivot state when transaction only contains updates. Default: false

    RowModel: Infinite

    See Infinite Row Model for more information.

    datasourceCopy
    Provide the datasource for infinite scrolling.
    cacheOverflowSizeCopy
    number
    default: 1
    How many extra blank rows to display to the user at the end of the dataset, which sets the vertical scroll and then allows the grid to request viewing more rows of data.
    maxConcurrentDatasourceRequestsCopy
    number
    default: 2
    How many requests to hit the server with concurrently. If the max is reached, requests are queued. Set to -1 for no maximum restriction on requests.
    cacheBlockSizeCopy
    number
    default: 100
    How many rows for each block in the store, i.e. how many rows returned from the server at a time.
    maxBlocksInCacheCopy
    number
    How many blocks to keep in the store. Default is no limit, so every requested block is kept. Use this if you have memory concerns, and blocks that were least recently viewed will be purged when the limit is hit. The grid will additionally make sure it has all the blocks needed to display what is currently visible, in case this property is set to a low value.
    infiniteInitialRowCountCopy
    number
    default: 1
    How many extra blank rows to display to the user at the end of the dataset, which sets the vertical scroll and then allows the grid to request viewing more rows of data.

    RowModel: Server-Side

    See Server-Side Row Model for more information.

    serverSideDatasourceCopy
    Provide the serverSideDatasource for server side row model.
    cacheBlockSizeCopy
    number
    default: 100
    How many rows for each block in the cache, i.e. how many rows returned from the server at a time. Default: 100
    maxBlocksInCacheCopy
    number
    How many blocks to keep in the cache. Default is no limit, so every requested block is kept. Use this if you have memory concerns, and blocks that were least recently viewed will be purged when the limit is hit. The grid will additionally make sure it has all the blocks needed to display what is currently visible, in case this property is set to a low value.
    maxConcurrentDatasourceRequestsCopy
    number
    default: 2
    How many requests to hit the server with concurrently. If the max is reached, requests are queued. Set to -1 for no maximum restriction on requests.
    blockLoadDebounceMillisCopy
    number
    How many milliseconds to wait before loading a block. Useful when scrolling over many blocks, as it prevents blocks loading until scrolling has settled.
    suppressServerSideFullWidthLoadingRowCopy
    boolean
    When true, the Server-side Row Model will not use a full width loading renderer, instead using the colDef loadingCellRenderer if present.
    purgeClosedRowNodesCopy
    boolean
    default: false
    When enabled, closing group rows will remove children of that row. Next time the row is opened, child rows will be read from the datasource again. This property only applies when there is Row Grouping. Default: false
    serverSidePivotResultFieldSeparatorCopy
    string
    default: '_'
    Used to split pivot field strings for generating pivot result columns when pivotResultFields is provided as part of a getRows success.
    serverSideSortAllLevelsCopy
    boolean
    default: false
    When enabled, always refreshes top level groups regardless of which column was sorted. This property only applies when there is Row Grouping & sorting is handled on the server.
    serverSideEnableClientSideSortCopy
    boolean
    default: false
    When enabled, sorts fully loaded groups in the browser instead of requesting from the server.
    serverSideOnlyRefreshFilteredGroupsCopy
    boolean
    default: false
    When enabled, only refresh groups directly impacted by a filter. This property only applies when there is Row Grouping & filtering is handled on the server.
    serverSideInitialRowCountCopy
    number
    default: 1
    Set how many loading rows to display to the user for the root level group.
    getChildCountCopy
    Function
    Allows setting the child count for a group row.
    getServerSideGroupLevelParamsCopy
    Function
    Allows providing different params for different levels of grouping.
    isServerSideGroupOpenByDefaultCopy
    Function
    Allows groups to be open by default.
    isApplyServerSideTransactionCopy
    Function
    Allows cancelling transactions.
    isServerSideGroupCopy
    Function
    SSRM Tree Data: Allows specifying which rows are expandable.
    getServerSideGroupKeyCopy
    Function
    SSRM Tree Data: Allows specifying group keys.

    RowModel: Viewport

    See Viewport Row Model for more information.

    viewportDatasourceCopy
    To use the viewport row model you need to provide the grid with a viewportDatasource.
    viewportRowModelPageSizeCopy
    number
    When using viewport row model, sets the page size for the viewport.
    viewportRowModelBufferSizeCopy
    number
    When using viewport row model, sets the buffer size for the viewport.

    Scrolling

    alwaysShowHorizontalScrollCopy
    boolean
    default: false
    Set to true to always show the horizontal scrollbar. Windows and Mac OS both have settings to control scrollbar visibility. Depending on your browser, you may need to adjust the scrollbar settings in your OS to have this property take effect.
    alwaysShowVerticalScrollCopy
    boolean
    default: false
    Set to true to always show the vertical scrollbar. Windows and Mac OS both have settings to control scrollbar visibility. Depending on your browser, you may need to adjust the scrollbar settings in your OS to have this property take effect.
    debounceVerticalScrollbarCopy
    boolean
    default: false
    Set to true to debounce the vertical scrollbar. Can provide smoother scrolling on slow machines.
    suppressHorizontalScrollCopy
    boolean
    default: false
    Set to true to never show the horizontal scroll. This is useful if the grid is aligned with another grid and will scroll when the other grid scrolls. (Should not be used in combination with alwaysShowHorizontalScroll.)
    suppressScrollOnNewDataCopy
    boolean
    default: false
    When true, the grid will not scroll to the top when new row data is provided. Use this if you don't want the default behaviour of scrolling to the top every time you load new data.
    suppressScrollWhenPopupsAreOpenCopy
    boolean
    default: false
    When true, the grid will not allow mousewheel / touchpad scroll when popup elements are present.
    suppressAnimationFrameCopy
    boolean
    default: false
    When true, the grid will not use animation frames when drawing rows while scrolling. Use this if and only if the grid is working fast enough on all users machines and you want to avoid the temporarily empty rows. Note: It is not recommended to set suppressAnimationFrame to true in most use cases as this can seriously degrade the user experience as all cells are rendered synchronously blocking the UI thread from scrolling.
    suppressMiddleClickScrollsCopy
    boolean
    default: false
    If true, middle clicks will result in click events for cells and rows. Otherwise the browser will use middle click to scroll the grid.
    Note: Not all browsers fire click events with the middle button. Most will fire only mousedown and mouseup events, which can be used to focus a cell, but will not work to call the onCellClicked function.
    suppressPreventDefaultOnMouseWheelCopy
    boolean
    default: false
    If true, mouse wheel events will be passed to the browser. Useful if your grid has no vertical scrolls and you want the mouse to scroll the browser page.
    scrollbarWidthCopy
    number
    Tell the grid how wide in pixels the scrollbar is, which is used in grid width calculations. Set only if using non-standard browser-provided scrollbars, so the grid can use the non-standard size in its calculations.

    Selection

    cellSelectionCopy
    boolean | CellSelectionOptions
    Configure cell selection
    rowSelectionCopy
    RowSelectionOptions | 'single' | 'multiple'
    Use the RowSelectionOptions object to configure row selection. The string values 'single' and 'multiple' are deprecated.
    selectionColumnDefCopy
    SelectionColumnDef
    Configure the selection column, used for displaying checkboxes. Note that due to the nature of this column, this type is a subset of ColDef, which does not support several normal column features such as editing, pivoting and grouping.
    suppressCellFocusCopy
    boolean
    default: false
    If true, cells won't be focusable. This means keyboard navigation will be disabled for grid cells, but remain enabled in other elements of the grid such as column headers, floating filters, tool panels.
    suppressHeaderFocusCopy
    boolean
    default: false
    If true, header cells won't be focusable. This means keyboard navigation will be disabled for grid header cells, but remain enabled in other elements of the grid such as grid cells and tool panels.
    enableCellTextSelectionCopy
    boolean
    default: false
    Set to true to be able to select the text within cells. Note: When this is set to true, the clipboard service is disabled and only selected text is copied.

    Sorting

    See Row Sorting for more information.

    accentedSortCopy
    boolean
    default: false
    Set to true to specify that the sort should take accented characters into account. If this feature is turned on the sort will be slower.
    suppressMultiSortCopy
    boolean
    default: false
    Set to true to suppress multi-sort when the user shift-clicks a column header.
    alwaysMultiSortCopy
    boolean
    default: false
    Set to true to always multi-sort when the user clicks a column header, regardless of key presses.
    multiSortKeyCopy
    'ctrl'
    Set to 'ctrl' to have multi sorting work using the ^ Ctrl (or Command ⌘ for Mac) key.
    suppressMaintainUnsortedOrderCopy
    boolean
    default: false
    Set to true to suppress sorting of un-sorted data to match original row data.
    postSortRowsCopy
    Function
    Callback to perform additional sorting after the grid has sorted the rows.
    deltaSortCopy
    boolean
    default: false
    When enabled, sorts only the rows added/updated by a transaction.

    Styling

    iconsCopy
    { [key: string]: ((...args: any[]) => any) | string }
    Icons to use inside the grid instead of the grid's default icons.
    rowHeightCopy
    number
    default: 25
    Default row height in pixels.
    getRowHeightCopy
    Function
    Callback version of property rowHeight to set height for each row individually. Function should return a positive number of pixels, or return null/undefined to use the default row height.
    rowStyleCopy
    RowStyle
    The style properties to apply to all rows. Set to an object of key (style names) and values (style values).
    getRowStyleCopy
    Function
    Callback version of property rowStyle to set style for each row individually. Function should return an object of CSS values or undefined for no styles.
    rowClassCopy
    string | string[]
    CSS class(es) for all rows. Provide either a string (class name) or array of strings (array of class names).
    getRowClassCopy
    Function
    Callback version of property rowClass to set class(es) for each row individually. Function should return either a string (class name), array of strings (array of class names) or undefined for no class.
    rowClassRulesCopy
    RowClassRules
    Rules which can be applied to include certain CSS classes.
    suppressRowHoverHighlightCopy
    boolean
    default: false
    Set to true to not highlight rows by adding the ag-row-hover CSS class.
    columnHoverHighlightCopy
    boolean
    default: false
    Set to true to highlight columns by adding the ag-column-hover CSS class.

    Theme

    See Theming for more information.

    themeCopy
    Theme | 'legacy'
    default: themeQuartz
    Theme to apply to the grid, or the string "legacy" to opt back into the v32 style of theming where themes were imported as CSS files and applied by setting a class name on the parent element.
    loadThemeGoogleFontsCopy
    boolean
    If your theme uses a font that is available on Google Fonts, pass true to load it from Google's CDN.
    themeStyleContainerCopy
    An element to insert style elements into when injecting styles into the grid. If undefined, styles will be added to the document head for grids rendered in the main document fragment, or to the grid wrapper element for other grids (e.g. those rendered in a shadow DOM or detached from the document).
    themeCssLayerCopy
    string
    The CSS layer that this theme should be rendered onto. If your application loads its styles into a CSS layer, use this to load the grid styles into a previous layer so that application styles can override grid styles.
    styleNonceCopy
    string
    The nonce attribute to set on style elements added to the document by themes. If "foo" is passed to this property, the grid can use the Content Security Policy style-src 'nonce-foo', instead of the less secure style-src 'unsafe-inline'. Note: CSP nonces are global to a page, where a page has multiple grids, every one must have the same styleNonce set.

    Tooltips

    See Tooltip Component for more information.

    enableBrowserTooltipsCopy
    boolean
    default: false
    Set to true to use the browser's default tooltip instead of using the grid's Tooltip Component.
    tooltipShowDelayCopy
    number
    default: 2000
    The delay in milliseconds that it takes for tooltips to show up once an element is hovered over. Note: This property does not work if enableBrowserTooltips is true.
    tooltipHideDelayCopy
    number
    default: 10000
    The delay in milliseconds that it takes for tooltips to hide once they have been displayed. Note: This property does not work if enableBrowserTooltips is true and tooltipHideTriggers includes timeout.
    tooltipMouseTrackCopy
    boolean
    default: false
    Set to true to have tooltips follow the cursor once they are displayed.
    tooltipShowModeCopy
    'standard' | 'whenTruncated'
    default: `standard`
    This defines when tooltip will show up for Cells, Headers and SetFilter Items.
  • standard - The tooltip always shows up when the items configured with Tooltips are hovered.
  • whenTruncated - The tooltip will only be displayed when the items hovered have truncated (showing ellipsis) values. This property does not work when enableBrowserTooltips={true}.
  • tooltipTriggerCopy
    'hover' | 'focus'
    default: 'hover'
    The trigger that will cause tooltips to show and hide.
  • hover - The tooltip will show/hide when a cell/header is hovered.
  • focus - The tooltip will show/hide when a cell/header is focused.
  • tooltipInteractionCopy
    boolean
    default: false
    Set to true to enable tooltip interaction. When this option is enabled, the tooltip will not hide while the tooltip itself it being hovered or has focus.

    Tree Data

    Tree Data provides a way to supply the grid with structured hierarchical data.

    See Tree Data for more information.

    treeDataCopy
    boolean
    default: false
    Set to true to enable the Grid to work with Tree Data. You must also implement the getDataPath(data) callback.
    getDataPathCopy
    GetDataPath
    Callback to be used when working with Tree Data when treeData = true.
    treeDataChildrenFieldCopy
    string
    The name of the field to use in a data item to retrieve the array of children nodes of a node when while using treeData=true. It supports accessing nested fields using the dot notation.
    treeDataParentIdFieldCopy
    string
    The name of the field to use in a data item to find the parent node of a node when using treeData=true. The tree will be constructed via relationships between nodes using this field. getRowId callback need to be provided as well for this to work. It supports accessing nested fields using the dot notation.
    autoGroupColumnDefCopy
    Allows specifying the group 'auto column' if you are not happy with the default. If grouping, this column definition is included as the first column in the grid. If not grouping, this column is not included.
    groupDefaultExpandedCopy
    number
    default: 0
    If grouping, set to the number of levels to expand by default, e.g. 0 for none, 1 for first level only, etc. Set to -1 to expand everything.
    isGroupOpenByDefaultCopy
    Function
    (Client-side Row Model only) Allows groups to be open by default.
    suppressGroupRowsStickyCopy
    boolean
    default: false
    Set to true prevent Group Rows from sticking to the top of the grid.

    Grid Options

    All the above properties can also be specified on a single gridOptions object. If an option is set via gridOptions, as well as directly on the component, then the component value will take precedence. gridOptions is only read during initialisation, if you change it afterwards it will not impact the grid.