Strange displayStart issue

Strange displayStart issue

felix_victorfelix_victor Posts: 4Questions: 2Answers: 0

When setting displayStart, moving back to previous page doesn't work (table shows page 3, button for page 2 is clickable but page doesn't change, see fiddle). This issue occurs in either bootstrap or semantic ui styling.

DataTables' own styling works though (see other fiddle).

Any ideas?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,743Questions: 1Answers: 10,111 Site admin
    Answer ✓

    The problem is that your display start is not an integer multiple of the page length.

    If you use an integer multiple then it does work as expected: https://jsfiddle.net/8q2du8h6/4/ .

    This possibly is a bug since DataTables own paging handles it a bit better, but I'd suggest simply using an integer multiple for the time being.

    Allan

  • felix_victorfelix_victor Posts: 4Questions: 2Answers: 0

    Thanks for the reply, Allan.

This discussion has been closed.