ajax.reload don't load state
ajax.reload don't load state
Hello,
Recently I started to work with DataTables, it is awesome!
I have problem with state saving and ajax.reload.
When I use state saving and the do ajax.reload, the state not loaded.
Example:
http://live.datatables.net/lofomofo/1/edit
Try select some rows and then, on the console do: $('#example').DataTable().ajax.reload()
You will see that the rows you selected not saved.
I suspect this happens because StateLoad callback not called on ajax.reload.
Thanks!
This question has an accepted answers - jump to answer
Answers
Please don't post duplicate threads.
Yes,
ajax.reload()
does not invoke state loading. This thread explains how you can have Datatables automatically reselect the rows afterajax.reload()
.Kevin