{hero}

fixedColumns().update()

Since: FixedColumns 3.1.0

Update the data shown in the FixedColumns.
Please note - this property requires the FixedColumns extension for DataTables.

Description

If the data in the host DataTable changes, the FixedColumns must be updated to reflect this new data. This method provides the ability, simply redrawing the fixed columns with the latest data in the DataTable.

In future this will be automated once DataTables added events for table update actions, but at the moment this method must be called.

Type

function fixedColumns().update()

Description:

Redraw the fixed columns, re-reading the data from the source DataTable.

Returns:

DataTables API instance

Example

Update data in a table and then redraw the fixed columns:

var table = $('#myTable').DataTable();

table.cell( 0, 0 ).data( 'New data' ).draw();
table.fixedColumns().update();