Pagination buttons sometimes display incorrectly

Pagination buttons sometimes display incorrectly

mbaasmbaas Posts: 57Questions: 20Answers: 1

I have a weird problem where a program of mine sometimes creates datatables with pagination-buttons that are not properly formatted:

By looking at the HTML, I see that the div with the pagination-controls is formatted as this:

Whereas as table with proper buttons has this:

(Don't be fooled by the different table-id's, this is random) I wonder what in my settings could cause such a different rendering of these buttons?

(BTW, v1.10.16)

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 2,661Questions: 21Answers: 303
  • mbaasmbaas Posts: 57Questions: 20Answers: 1

    I'd be happy to - but the debugger hangs as it uploads the data.

  • kthorngrenkthorngren Posts: 9,794Questions: 25Answers: 2,258

    Tangerine suggested providing a test case not the debugger output. The problem is likely a CSS issue which is difficult to troubleshoot without seeing the problem. Please post a link to your page or a test case replicating the issue.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

  • allanallan Posts: 52,290Questions: 1Answers: 7,966 Site admin

    That's very odd! Do you have async on any of your <script> tags? I'm wondering if they might be loading out of order and you are using one of the styling libraries.

    If the debugger isn't working in this case, we probably would need a test case as Kevin and tangerine indicate.

    Thanks,
    Allan

  • mbaasmbaas Posts: 57Questions: 20Answers: 1

    Ok, I'll try to build one...

  • mbaasmbaas Posts: 57Questions: 20Answers: 1
    Answer ✓

    <blush>As I was building the repro, I found that in certain cases I did not include all the required js-files. Entirely my fault! Sorry, folks!</blush>

  • allanallan Posts: 52,290Questions: 1Answers: 7,966 Site admin

    No worries - thanks for posting back. Good to hear you've got it fixed.

    Allan

Sign In or Register to comment.