Submitting form with pagination causes changes only on the current page
Submitting form with pagination causes changes only on the current page
I have read the forum about this case and found a similar problem on the link below:
https://datatables.net/forums/discussion/15410/submitting-forms-with-pagination
What I have seen also in the documentation and examples is that when submitting a form that has pagination the only parameter changes (when serialized) are from the current page.
For example, if I make changes on page n.1 and go to page n.2 and also make changes after I submit the form the only updated values are those from the second page (last page visited).
This seems to be a datatable problem from all the questions and solutions people have suggested.
Is there any option to fix this bug or will be a new update for this?
Answers
Do you mean with server side processing enabled? This is true with server side processing enabled as the only data in the client is the data on the page shown.
However with client side processing the example linked to in the thread you posted seems to work. I copied it here to show how may input and select elements are found. The result is 171 (57 rows * 3).
Also in the example I can change a value in the first row
Charde Marshall
(which will output in the alert), go to a new page and the changes are picked up with the submit button.There is no bug that I know of. Please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin