lengthMenu help me.
lengthMenu help me.
changing the parameters of lengthMenu, it shows only 4 rows, and I am writing to show me 5 rows where am I wrong? but if ordered by descending if it shows 5 rows.
"order": [[0, 'asc']],
"lengthMenu": [[5, 15, 20, -1],[5, 15, 20, "Todo"]],
"pageLength": 10,
This discussion has been closed.
Answers
Its because you've set
pageLengthto be set to10but you haven't defined10as an option insidelengthMenueither add10to the array insidelengthMenuor changepageLengthto be5.Thanks
Tom
Thanks Tom , change the values of lengthMenu to 5 and pageLength to 5, but still shows me only 4 rows . imagens attached . Attached image
"order": [ [0, 'asc'] ],
"lengthMenu": [ [5, 10, 20, -1], [5, 10, 20, "Todo"] ],
"pageLength": 5,
Are you using server-side processing? It sounds like the server-side might only be returning four rows.
If you give a link to the page we'd be happy to take a look at it.
Allan
I check the server side , and if you send the correct rows.
the problem is " TOTAL " on line 9. because it brings me 16 rows , and my board have only 15 rows . but I can not find from where it takes 16 rows. Attached image.
I would need a link to the page showing the issue to be able to debug the issue, as I requested above.
Allan