pagination on auto-refresh
pagination on auto-refresh
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 ;)
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 ;)
This discussion has been closed.
Replies
Sorry guyz. You can delete this post.
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...