This topic is locked

Pagination with selected check boxes

6/22/2017 10:15:29 AM
PHPRunner General questions
G
gordanat author

Anyone know whether it is possible(and how) to get selected items through all pages with pagination applied(example 20 records per page) not to go one by one page...?
I want to select all displayed records(huge list) in all pages and then do whatever needed (update selected, etc...)
Thx in advance
Gordana

admin 6/22/2017

It is more complicated than it looks. The proper way is to save those selections in session variables and then process then all at once. It is similar to the shopping cart when you add selected items to the cart.
You also would need to provide a way for the user to clear current selection, probably that would another button on the List page. So it is possible but a reasonable amount of code will be required.

G
gordanat author 6/23/2017

Thank you Sergey for further explanation, definitely not a quick fix ...
Gordana



It is more complicated than it looks. The proper way is to save those selections in session variables and then process then all at once. It is similar to the shopping cart when you add selected items to the cart.
You also would need to provide a way for the user to clear current selection, probably that would another button on the List page. So it is possible but a reasonable amount of code will be required.