React DataGrid - Grouping

Configures grouping.

import { Grouping } from "devextreme/ui/data_grid"

allowCollapsing

Specifies whether the user can collapse grouped records in a grid or not.

Type:

Boolean

Default Value: true

autoExpandAll

Specifies whether groups appear expanded or not.

Type:

Boolean

Default Value: true

contextMenuEnabled

Enables the user to group data using the context menu.

Type:

Boolean

Default Value: false

expandMode

Specifies the event on which a group will be expanded/collapsed.

Default Value: 'buttonClick', 'rowClick' (mobile devices)

texts

Defines the texts of grouping-related visual elements.

Type:

Object