Export Buttons on dataTable Serverside .

Export Buttons on dataTable Serverside .

MazenMazen Posts: 2Questions: 2Answers: 0

I have a data table with serverside processing and I want to create an export as CSV button, How can I do it?
My dataTable will show only 20 records on each page.

Answers

  • wblakencwblakenc Posts: 77Questions: 17Answers: 1

    You cannot export more data than is available on the client. The easiest solution would be to have all processing done locally. The other option would be change the number of items per page to all before you export and then change it back. Take a look at page.len()

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    As wblakenc said that's not currently supported (though it will in the mid-term), but there are a couple of thread on this, such as here and here, that may help get you going,

    Colin

This discussion has been closed.