bStateSave Issue with Pagination - Remembering Page on new search
bStateSave Issue with Pagination - Remembering Page on new search
applaps
Posts: 12Questions: 0Answers: 0
Hello,
First of all, I am working on an existing application and am new to DataTables... I have an issue where bStateSave is set to true and a user performs a new search but the page from the old search is remembered, example:
1. User searches for a fruit (type of food)
2. 10 fruits shown per page, user navigates to page 3 (viewing items 21-30)
3. User searches for a vegetable
4. User is still on page 3 of vegetables (type of food)
In other circumstances, if there were less results than their previous search, i.e. user searches for bread and there are only 10 results, a message appears saying "No matching records found". The pagination displays "1" and if they click that they are taken to page one and show all 10 bread items...
I would expect that the new search would take the user to page 1 in all circumstances.
I do require bStateSave to be true so that users can navigate to other tabs within our application, and return to see their search results as they left them.
The datatables version is 1.7.5 - I'm wondering if this could maybe be the issue, however, I don't want to try an upgrade without confirmation as it is quite a large scale application. I also cannot provide any dubber traces or working examples..
Thanks heaps!
First of all, I am working on an existing application and am new to DataTables... I have an issue where bStateSave is set to true and a user performs a new search but the page from the old search is remembered, example:
1. User searches for a fruit (type of food)
2. 10 fruits shown per page, user navigates to page 3 (viewing items 21-30)
3. User searches for a vegetable
4. User is still on page 3 of vegetables (type of food)
In other circumstances, if there were less results than their previous search, i.e. user searches for bread and there are only 10 results, a message appears saying "No matching records found". The pagination displays "1" and if they click that they are taken to page one and show all 10 bread items...
I would expect that the new search would take the user to page 1 in all circumstances.
I do require bStateSave to be true so that users can navigate to other tabs within our application, and return to see their search results as they left them.
The datatables version is 1.7.5 - I'm wondering if this could maybe be the issue, however, I don't want to try an upgrade without confirmation as it is quite a large scale application. I also cannot provide any dubber traces or working examples..
Thanks heaps!
This discussion has been closed.