btStateSave does not save pagination page
btStateSave does not save pagination page
Hi,
I have set btStateSave = true such that datatable creates the cookie.
Then I load the page with some table entries - for instance, I have a record set from the database with 80 rows, and I have selected that DataTable should show the first 50 of them such that there are two paginations of the table view.
I select the second pagination view and click on a link to another page.
If I then go back to the table view page - I'm not using "history back" in the browser but click on a link, then I can see, that DataTable has saved the state view. It remember that I have selected 50 rows and I can see in the bottom of the table view that the second pagination is selected, but the entries in the table shows the rows from the first pagination.
It seems that when I load the table again with the cookie information it never switch to the current pagination but sticks to the first pagination.
What is wrong? Should I load/call something to show the right pagination?
Regards
Jesper
I have set btStateSave = true such that datatable creates the cookie.
Then I load the page with some table entries - for instance, I have a record set from the database with 80 rows, and I have selected that DataTable should show the first 50 of them such that there are two paginations of the table view.
I select the second pagination view and click on a link to another page.
If I then go back to the table view page - I'm not using "history back" in the browser but click on a link, then I can see, that DataTable has saved the state view. It remember that I have selected 50 rows and I can see in the bottom of the table view that the second pagination is selected, but the entries in the table shows the rows from the first pagination.
It seems that when I load the table again with the cookie information it never switch to the current pagination but sticks to the first pagination.
What is wrong? Should I load/call something to show the right pagination?
Regards
Jesper
This discussion has been closed.