Datatable with pageLenght and export
Datatable with pageLenght and export

Hi, I am looking for a datatables which contained both the pageLenght and Export options
Thank you.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
pageLength is easily incorporated into your DT initialisation.
https://datatables.net/reference/option/pageLength
For Export, use the Buttons extension.
https://datatables.net/extensions/buttons/
@tangerine,
Thank you for your reply. Obviously I had already mixed its two datatables to have the options of Export and pageLenght together, but in a way that I ignore the Export button appears alone and that of pageLenght does not appear at all.
Does this FAQ help?
Allan
@allan, not really
This example shows bot the export buttons and the length menu.
http://live.datatables.net/kociwasu/1/edit
Is this what you are looking for? Note the use of both
l
andB
in thedom
option as described in the FAQ Allan linked. If this doesn't help please provide a link to your page or a test case (update mine if you want) that shows the issue so we can see what you are asking for.https://datatables.net/manual/tech-notes/10
Kevin
Thank you very much @kthorngren, it is exactly what I was looking for.