Removing the page when there is 0 records of data

Removing the page when there is 0 records of data

xRiZzLeSxRiZzLeS Posts: 1Questions: 1Answers: 0

I just wanted to know if this is possible:

I want my pagination to not show any page when there is no row to show and all rows are selected in length.

At first I thought maybe it was a problem in my project, but I saw this example https://datatables.net/examples/advanced_init/length_menu.html in Datatables when searching something that yields 0 results and selecting all entries (-1), the page 1 appears.

Maybe this is a bug, or is the intended behaviour, but I would like to remove that page.

This question has an accepted answers - jump to answer

Answers

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

    I'd say that's a bug - I would've expected "All" to behave the same as "10" in that instance. I've raised it internally (DD-2400 for my reference) and we'll report back here when there's an update.

    Cheers,

    Colin

Sign In or Register to comment.