pagination on auto-refresh

pagination on auto-refresh

_krc__krc_ Posts: 2Questions: 0Answers: 0
edited April 2010 in General
Hi everybody.. happy easter to all ;)

I have a little problem with pagination..
I'm using a simple auto-refresh function (turned on/off on checkbox toggle) to redraw table and every time, when I go to next page, after auto-refreshing, it puts me back automaticaly on 1st page.

Is there any way to save the state of page number? 'iDisplayStart' seems to be set to zero before redraw or smth :(
Maybe someone can provide me with example auto-refresh function, where the page state is working correctly..

Btw. Thank You Allan for Your great great work!.
I cannot imagine people creating ajax tables without this plugin ;)

Replies

  • _krc__krc_ Posts: 2Questions: 0Answers: 0
    ups.. didn't saw "fnStandingRedraw" in API section :)

    Sorry guyz. You can delete this post.
  • dragonflydragonfly Posts: 2Questions: 0Answers: 0
    Hi ,
    Also using 4. parameter of fnUpdate function helps to keep the page state as it is.
    Sample:
    [code]
    $('#rulesTable').dataTable().fnUpdate(suburb_name, rowNo, 3, false );
    [/code]

    Regards...
This discussion has been closed.