What's New Copy Link
See the release post for details of what's new in version 32.
Codemods Copy Link
Follow these steps to upgrade your project's AG Grid version to 32.0.0:
Locate your project's
package.jsonand note the version of AG Grid that you are currently using.Update any AG Grid dependencies listed in the
package.jsonto version32.0.0.Open a terminal and navigate to your project's root folder.
Run the
migratecommand of version32.0of the AG Grid codemod runner, where$FROM_VERSIONrefers to your project's existing AG Grid version:npx @ag-grid-devtools/cli@latest migrate --from=$FROM_VERSION --to=32.0This will update your project's source files to prepare for the new release.
By default the Codemod runner will locate all source files within the current directory. For projects with more specific requirements, pass a list of input files to the
migratecommand, or specify the--helpargument to see more fine-grained usage instructions.
The Codemod runner will check the state of your project to ensure that you don't lose any work. If you would rather see a diff of the changes instead of applying them, pass the --dry-run argument.
The codemod only transforms source files that make use of deprecated features, so if you aren't currently making use of any of those APIs your source code will be unaffected by the codemod.
See the Codemods documentation for more details.
Deprecations Copy Link
This release includes the following deprecations:
Column Options Copy Link
dndSource and dndSourceOnRowDrag are reinstated (no longer deprecated).
Events Copy Link
The following interfaces are deprecated and replaced with the equivalent interface suffixed with Event:
ChartCreated, useChartCreatedEventinstead.ChartRangeSelectionChangeddeprecated, useChartRangeSelectionChangedEventinstead.ChartOptionsChangeddeprecated, useChartOptionsChangedEventinstead.ChartDestroyeddeprecated, useChartDestroyedEventinstead.AsyncTransactionsFlusheddeprecated, useAsyncTransactionsFlushedEventinstead.
GridOptions Copy Link
suppressLoadingOverlay is deprecated, setting loading=false to disable overlay.
Grid API Copy Link
showLoadingOverlay is deprecated, setting loading=true to enable overlay.
Breaking Changes Copy Link
Build Output Copy Link
The TSConfig target has been set to ES2020.
Column API Copy Link
Column API is now removed. API methods previously available via Column API are now available in Grid API instead.
Column Menu Copy Link
The new (flat) format column menu is now enabled by default. The legacy tabbed column menu can be enabled via columnMenu = 'legacy'. If providing a column header component template (colDef.headerComponentParams.template), this now requires an eFilterButton element.
Compatibility Copy Link
The minimum version of TypeScript you can use with AG Grid is now 5.1.
Events Copy Link
The floating property has been removed from CellFocusedEvent. Use rowPinned instead.
GridOptions Copy Link
suppressParentsInRowNoderemoved without replacement.enterMovesDownremoved, useenterNavigatesVerticallyinstead.enterMovesDownAfterEditremoved, useenterNavigatesVerticallyAfterEditinstead.excludeHiddenColumnsFromQuickFilterremoved, useincludeHiddenColumnsInQuickFilterinstead.suppressAggAtRootLevelremoved, usealwaysAggregateAtRootLevelinstead.serverSideFilterAllLevelsremoved, useserverSideOnlyRefreshFilteredGroupsinstead.enableChartToolPanelsButtonremoved, usesuppressChartToolPanelsButtoninstead.functionsPassiveremoved without replacement.onColumnRowGroupChangeRequestremoved without replacement.onColumnPivotChangeRequestremoved without replacement.onColumnValueChangeRequestremoved without replacement.onColumnAggFuncChangeRequestremoved without replacement.
Grid API Copy Link
The Grid API methods listed below have been removed. Please use Grid API methods setGridOption and updateGridOptions to set properties instead.
setPivotModesetPinnedTopRowDatasetPinnedBottomRowDatasetPopupParentsetSuppressModelUpdateAfterUpdateTransactionsetDataTypeDefinitionssetPaginationpaginationSetPageSizesetSideBarsetSuppressClipboardPastesetGroupRemoveSingleChildrensetGroupRemoveLowestSingleChildrensetGroupDisplayTypesetGroupIncludeFootersetGroupIncludeTotalFootersetRowClasssetDeltaSortsetSuppressRowDragsetSuppressMoveWhenRowDraggingsetSuppressRowClickSelectionsetEnableAdvancedFiltersetIncludeHiddenColumnsInAdvancedFiltersetAdvancedFilterParentsetAdvancedFilterBuilderParamssetQuickFiltersetExcludeHiddenColumnsFromQuickFiltersetIncludeHiddenColumnsInQuickFiltersetQuickFilterParsersetQuickFilterMatchersetAlwaysShowHorizontalScrollsetAlwaysShowVerticalScrollsetFunctionsReadOnlysetColumnDefssetAutoGroupColumnDefsetDefaultColDefsetColumnTypessetTreeDatasetServerSideDatasourcesetCacheBlockSizesetDatasourcesetViewportDatasourcesetRowDatasetEnableCellTextSelectionsetHeaderHeightsetDomLayoutsetFillHandleDirectionsetGroupHeaderHeightsetFloatingFiltersHeightsetPivotHeaderHeightsetPivotGroupHeaderHeightsetAnimateRowssetIsExternalFilterPresentsetDoesExternalFilterPasssetNavigateToNextCellsetTabToNextCellsetTabToNextHeadersetNavigateToNextHeadersetRowGroupPanelShowsetGetGroupRowAggsetGetBusinessKeyForNodesetGetChildCountsetProcessRowPostCreatesetGetRowIdsetGetRowClasssetIsFullWidthRowsetIsRowSelectablesetIsRowMastersetPostSortRowssetGetDocumentsetGetContextMenuItemssetGetMainMenuItemssetProcessCellForClipboardsetSendToClipboardsetProcessCellFromClipboardsetProcessPivotResultColDefsetProcessPivotResultColGroupDefsetPostProcessPopupsetInitialGroupOrderComparatorsetGetChartToolbarItemssetPaginationNumberFormattersetGetServerSideGroupLevelParamssetIsServerSideGroupOpenByDefaultsetIsApplyServerSideTransactionsetIsServerSideGroupsetGetServerSideGroupKeysetGetRowStylesetGetRowHeight
Integrated Charts Copy Link
Refer to Upgrade to AG Charts 10 for behaviour and breaking changes.
The Integrated Charts Tool Panels button has been replaced with the new Chart Menu, from which the Chart Tool Panels can be launched (via the "Edit Chart" menu item).
The grid option
suppressChartToolPanelsButtonand the legacy hamburger menu for Integrated Charts have been removed and replaced with the new Chart Menu. As a result, thegetChartToolbarItemsgrid option now uses the typeChartToolbarMenuItemOptionsinstead ofChartMenuOptions. TheChartMenuOptionstype has been removed.Double click to edit has been removed for Integrated Chart titles. Titles can now be edited via the Chart Tool Panels.
Interfaces Copy Link
ChangeDetectionStategyTyperemoved without replacement.ICellRendererParams.rowIndexremoved, usedICellRendererParams.node.rowIndexinstead.Column,ColumnGroupandProvidedColumnGroupare now interfaces instead of classes. Some public methods that were part of the internal grid API were previously exposed on the classes, but are not exposed on the interfaces.- The
IProvidedColumninterface has been removed in favour ofColumn | ProvidedColumnGroup. TheIHeaderColumninterfaces has been removed in favour ofColumn | ColumnGroup. If previously usinginstanceofto differentiate, it is now possible to check theisColumnproperty, which can be used as a type differentiator.
Keyboard Navigation Copy Link
- Pressing the ⇥ Tab key when focusing on a set filter list item or a column's tool panel list item takes focus out of the list. Navigating inside the list is possible with ↑/↓ Arrow keys.
- The column menu is now opened by the ⌥ Alt+↓ keyboard combination, with the column filter opened by ^ Ctrl+↵ Enter.
Localisation Copy Link
Localisation key autosizeThiscolumn has been renamed to autosizeThisColumn
Row IDs Copy Link
getRowId callback is now called to set row ids for pinned rows.
Skeleton Loaders Copy Link
Skeleton loaders of different widths are shown across rows.
Text Wrapping Copy Link
Header and grid cells text wrapping uses word-break:'break-word' mode instead of 'normal'. This can be overridden via CSS.