Avoid resetting pagination during redraw
Avoid resetting pagination during redraw
I am trying to retain the current page AND sort rules after calling fnAddData?
By default, I get sent back to the first page if if an update happens.
Calling fnAddData(data, false) followed by fnDraw(false) is close, in that the pagination is not affected, but the sort is not applied (new data is tacked on at the end.)
Is there a way to trigger a re-sort after fnAddData without resetting pagination?
By default, I get sent back to the first page if if an update happens.
Calling fnAddData(data, false) followed by fnDraw(false) is close, in that the pagination is not affected, but the sort is not applied (new data is tacked on at the end.)
Is there a way to trigger a re-sort after fnAddData without resetting pagination?
This discussion has been closed.
Replies
you'll need to paste the "plug-in" code into your project somewhere
http://www.datatables.net/plug-ins/api#fnStandingRedraw
Thanks!