Pre-selecting the hidden / paginated table rows
Pre-selecting the hidden / paginated table rows
Hi Folks,
Here is the riddle I am looking to solve:
There is a Datatable with over 500 records. By default the Datatable shows first 10 records and am happy with that.
This Datatable is enclosed in a Form because there is a checkbox corresponding to each row which may or may not be checked.
I am storing the checkbox value in mysql database and pre-selecting them when the form is displayed.
When I check a record row and submit the form to record the new values, they are submitted correctly but the pre-selected records "which do not show up by in the 10-records limit" lose their value.
How can I ensure, that "all" records which are been pre-selected are POSTed using the form regardless of where they are in the pagination?
Thanks
This discussion has been closed.
Answers
Bump!
It appears that the checkboxes in paginated records are pre-selected but the POST only considers the value from the tables that are visible at any time, not the paginated ones.
Does anyone has any solution for this?