Multiple checkbox not work with filter and pagination

Multiple checkbox not work with filter and pagination

nunziorashnunziorash Posts: 12Questions: 2Answers: 0

Link to test case:
Debugger code (debug.datatables.net):
Error messages shown:
Description of problem:
I have a multiple checkboxs, when I select the check and then I change the page or filter the table and I submit the form to get the values, I only have the last checkbox as a result.
Why? How can I solve? Can you please help me?

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • nunziorashnunziorash Posts: 12Questions: 2Answers: 0

    I was able to extract the code that has the problem:
    http://live.datatables.net/mofomuzo/1/edit?html,css,js,console,output

    If I select the checkboxes and click insert I can only take the values of the page I am viewing, if other checkboxes of other pages are selected these are not getting, why?
    The same thing if I make a filter...

  • kthorngrenkthorngren Posts: 21,374Questions: 26Answers: 4,957
    Answer ✓

    The problem is the only rows in the DOM are the rows displayed on the current page. Instead of using jQuery methods you will need to use cells().nodes() to access the nodes on all the pages. I put together a checkbox change event handler to demonstrate this with your example:
    http://live.datatables.net/tituzula/1/edit

    Kevin

  • nunziorashnunziorash Posts: 12Questions: 2Answers: 0

    Thanks for your help.
    I don't know how to handle the ununchecked but I'll try to work on it.
    Thank you.

Sign In or Register to comment.