Refresh Datatable after adding row to DOM table using Knockout.js
Refresh Datatable after adding row to DOM table using Knockout.js
AniketBhadane
Posts: 2Questions: 2Answers: 0
I have a DOM table to which I have applied Datatable as: var table = $("#table").DataTable();
This table's tbody is: <tbody data-bind="foreach: Employees">
It is binded to an observablearray in a viewmodel using knockout.js
When I add a new record in the Employees observablearray, a new row is automatically added to DOM table due to knockout automatic binding.
This new row is visible in UI but not applied to Datatable.
How do I include this new row in Datatable?
This discussion has been closed.