{hero}

rowGroup.enable

Since: RowGroup 1.0.0

Provides the ability to disable row grouping at initialisation.
Please note - this property requires the RowGroup extension for DataTables.

Description

When using RowGroup you are most likely to set up an initial grouping configuration for the end user (using the rowGroup.dataSrc) option. But if you wish to provide the option to have the table initially un-grouped and let the user select the group (rowGroup().dataSrc()) this option provides that ability.

Type

boolean

Description:

As a boolean value this property will control whether RowGroup is enabled or disabled for a DataTable.

Default

  • Value: true

RowGroup will be initialised if the rowGroup property is specified in the table initialisation.

Example

Disable row grouping during initialisation:

new DataTable('#myTable', {
	rowGroup: {
		enable: false
	}
});