Row groupings is an AG Grid Enterprise feature, so you’ll need a license key to use it. See Using AG Grid Enterprise for an example of how to use your license key with Dash AG Grid components.
The following example demonstrates how to group rows in Dash AG Grid. In this example, we group first by country and then by year.
For more information see the Scroll To section.
In order to scroll the grid to a position, the row must exist the DOM. When using row groups, the detailed row must be
displayed prior to setting the scrollTo
prop.
In this example we use the setRowNodeExpanded
function in a clientside callback to expand the group that has the detail row specified by the rowId
.