Updated datatables pagination stopped working

Updated datatables pagination stopped working

jsosajsosa Posts: 19Questions: 6Answers: 0

Hello, I'm trying to update datatables from 2.0.3 to 2.3.2 and it mostly works, but pagination stops working. I noticed the buttons go from being 'a' links to buttons. I'm using server-side processing with no changes, and it seems like it should be getting the data back as usual. Is there something I should look at to get the buttons working where a links worked before?

Answers

  • kthorngrenkthorngren Posts: 22,263Questions: 26Answers: 5,122

    Server side processing should follow this [protocol]https://datatables.net/manual/server-side), If the paging buttons aren't correct then I suspect the response doesn't have the correct parameter values for Datatables to calculate the number of pages. Start by using the browser's network inspector to see the JSON response. Post the JSON response so we can take a look.

    but pagination stops working.

    What exactly is the issue you are seeing?

    Can you post a link to your page so we can take a look to help. debug? If not maye you can PM Allan with a link so he can help debug.

    Kevin

  • allanallan Posts: 65,058Questions: 1Answers: 10,773 Site admin

    The fact that it uses button rather than a should make no difference (as seen on the examples on this site). That was does for improved accessability and better theme integration.

    Allan

  • jsosajsosa Posts: 19Questions: 6Answers: 0

    Just clicking a page button does nothing on the front-end. But I can see the server respond with what looks like the usual results, which work well on 2.0.3. I sent allen a PM and will reply back here if we figure it out. Thanks!

  • jsosajsosa Posts: 19Questions: 6Answers: 0

    Allan was able to help identify a custom jQuery selector listening to buttons that needed to be better constrained. Thank you for your help on figuring that out, allan!

Sign In or Register to comment.