I would like to add new settings after datatable initiate

I would like to add new settings after datatable initiate

kaewdatatablekaewdatatable Posts: 1Questions: 1Answers: 0

var dt = $(“table-result”).DataTable();
var settings = dt.settings();
dt.clear();
settings._iRecordsDisplay = json.total;
settings._iRecordsTotal = json.total;

dt.destroy();
dt = $(“table-result”).DataTable(settings);

Answers

  • kthorngrenkthorngren Posts: 20,141Questions: 26Answers: 4,735

    Maybe you can describe more about what you are trying to do. There are no Datatables options for _iRecordsDisplay and _iRecordsTotal.

    Kevin

This discussion has been closed.