We're correctly using -1 and 'All' in the lengthmenu but choosing 'All' show no rows

We're correctly using -1 and 'All' in the lengthmenu but choosing 'All' show no rows

lefhlefh Posts: 2Questions: 1Answers: 0

Description of problem:

Answers

  • lefhlefh Posts: 2Questions: 1Answers: 0

    We're using multiple datatables on our website. They all use 'LengthMenu (inculidng -1 for 'All'. Choosing 'All' works on all but one datatable. I know there are 47 available rows and the other LengthMenu choices all work EXCEPT -1 for 'All'. That choice shows no rows.
    Code: "lengthMenu": [[5, 10, 25, 50, -1], [5, 10, 25, 50, "All"]]

  • allanallan Posts: 65,813Questions: 1Answers: 10,949 Site admin

    Are you using server-side processing perhaps? If so, whatever server-side script you are using would need to handle the -1.

    Failing that. Can you link to the page so I can take a look and debug it please?

    Thanks
    Allan

  • allanallan Posts: 65,813Questions: 1Answers: 10,949 Site admin

    As a quick example of the code you show working, I've put this together.

    As I say, if you can give me a link to a test case showing the issue, I'll dig into it and help resolve the problem.

    Allan

Sign In or Register to comment.