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"]]
Answers
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"]]
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
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