rowGroup().disable()

Since: RowGroup 1.0.0

Disable RowGroup's interaction with the table. Please note - this property requires the RowGroup extension for DataTables.

Description

This method can be used to dynamically disable the row grouping feature offered by the RowGroup extension for DataTables. This can be useful for cases where you want the end user to be able to toggle grouping, and optionally to switch between the grouping used for the table.

Please note that the visual effect for grouping being disabled is not shown until the DataTable is redrawn. This would typically be done by immediately calling the draw() method.

Type

function rowGroup().disable()

Description:

Disable the the RowGrouping feature of the DataTable.

Returns:

DataTables API instance

Example

Disable row grouping:

var table = $('#example').DataTable( {
	rowGroup: true
} );

table.rowGroup().disable().draw();

Related

The following options are directly related and may also be useful in your application development.