Avoid resetting pagination during redraw

Avoid resetting pagination during redraw

adiesenadiesen Posts: 2Questions: 0Answers: 0
edited October 2011 in General
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?

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited October 2011
    the fnStandingRedraw might work for that

    you'll need to paste the "plug-in" code into your project somewhere

    http://www.datatables.net/plug-ins/api#fnStandingRedraw
  • adiesenadiesen Posts: 2Questions: 0Answers: 0
    Yeah, that works great.
    Thanks!
This discussion has been closed.