All docs
V19.2
24.1
The page you are viewing does not exist in version 24.1.
23.2
The page you are viewing does not exist in version 23.2.
23.1
The page you are viewing does not exist in version 23.1.
22.2
The page you are viewing does not exist in version 22.2.
22.1
The page you are viewing does not exist in version 22.1.
21.2
The page you are viewing does not exist in version 21.2.
21.1
The page you are viewing does not exist in version 21.1.
20.2
The page you are viewing does not exist in version 20.2.
20.1
The page you are viewing does not exist in version 20.1.
19.2
19.1
18.2
18.1
17.2
Box
Row
Map
Vue
A newer version of this page is available. Switch to the current version.

jQuery DataGrid - grouping

Configures grouping.

Type:

Object

View Demo

See Also

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

NOTE
When you use the ODataStore and set this option to false, the DataGrid loads data for all pages at once.
See Also

contextMenuEnabled

Enables the user to group data using the context menu.

Type:

Boolean

Default Value: false

Set this option to true to enable grouping using the context menu. In this case, to group/ungroup data, the user right-clicks a column header and chooses the required item from the appeared context menu.

See Also

expandMode

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

Type:

String

Default Value: 'buttonClick', 'rowClick' (mobile devices)
Accepted Values: 'buttonClick' | 'rowClick'

By default, to expand/collapse a group, the user clicks its expand/collapse button. On small-screen devices, this approach may impair the user experience. As an alternative, consider expanding/collapsing a group by a click on the group row. For this purpose, assign "rowClick" to the grouping.expandMode option.

Use the GridGroupingExpandMode enum to specify this option when the widget is used as an ASP.NET MVC 5 Control or a DevExtreme-Based ASP.NET Core Control. This enum accepts the following values: ButtonClick and RowClick.

See Also

texts

Defines the texts of grouping-related visual elements.

Type:

Object

Use the options of this object to localize or customize grouping-related elements. For example, the groupByThisColumn, ungroup and ungroupAll options customize items of the context menu. These items appear in the menu only if the grouping.contextMenuEnabled option is set to true.

Also, this object contains the groupContinuesMessage and groupContinuedMessage options that specify the text added to group rows when the group is parted.