DataTables .draw() not firing properly
I was having a very similar problem. This worked for me:
table.rows().invalidate().draw()
You should be able to use table.destroy();
immediately before table.draw();
. It's likely that you're "filtering" somehow before you do the table draw, which is causing this problem. table.destroy();
will take out any filtering and then you can draw from scratch.
https://datatables.net/reference/api/destroy()