How to apply stateSave for dynamically inserted values
How to apply stateSave for dynamically inserted values
![aravintha](https://secure.gravatar.com/avatar/07f314b03da855b76b7d33406e43b5fa/?default=https%3A%2F%2Fvanillicon.com%2F07f314b03da855b76b7d33406e43b5fa_200.png&rating=g&size=120)
I am inserting table values dynamically.First initialized the table like.
var table = $("#mytable").DataTable({stateSave:true});
In my ajax call dynamically inserted the values like below
table.row.add([name, editOption, deleteOption]).draw();
before inserting rows
cleared the table rows.
table.clear();
inserted successfully but the problem is when refresh not able view the previous viewed pagination
Here is the fiddle.
https://jsfiddle.net/mggy3nde/5/
This discussion has been closed.