Box
API
Row
Map

jQuery DataGrid - grouping

Configures grouping.

Type:

Grouping

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

View Demo

NOTE
When you use the ODataStore and set this property 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 property 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.

View Demo

See Also

expandMode

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

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

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 property.

View Demo

See Also

texts

Defines the texts of grouping-related visual elements.

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

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