Refresh Datatable after adding row to DOM table using Knockout.js

Refresh Datatable after adding row to DOM table using Knockout.js

AniketBhadaneAniketBhadane Posts: 2Questions: 2Answers: 0
edited July 2015 in Free community support

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.