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: 8,931Questions: 25Answers: 2,040

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

    Kevin

Sign In or Register to comment.