How can i get export with Show entries option ?

How can i get export with Show entries option ?

karimtnkarimtn Posts: 2Questions: 1Answers: 0

Hello,
How can i add export to my DataTable and keep show entries option too ?

Thanks

Answers

  • allanallan Posts: 64,745Questions: 1Answers: 10,713 Site admin

    You mean you want to export the "show entries" logic to the CSV / Excel file? There is no option for that I'm afraid, nor is it a planned feature. I don't see how such a thing can ever work with CSV - it might be possible in Excel, but I'm not sure.

    Allan

  • karimtnkarimtn Posts: 2Questions: 1Answers: 0

    I want just to have show entries and Excel on the same time

  • allanallan Posts: 64,745Questions: 1Answers: 10,713 Site admin

    Oh I see! Just add the l option into your dom parameter in that case.

    Alternatively, use the pageLength button to have it styled the same as the other buttons - example.

    Allan

  • WatcharaWatchara Posts: 30Questions: 5Answers: 1

    Mr. Allan

    When I had follow your example my export button are disappear and replace by page length button.

    How to show all buttons in the same time?

  • allanallan Posts: 64,745Questions: 1Answers: 10,713 Site admin

    Without a link to the page showing the issue, or at the very least the code you are using, its impossible to say. My guess is that you have removed the other buttons, but I can't know for sure.

    Allan

This discussion has been closed.