How to get all of data?(buttons excel)

How to get all of data?(buttons excel)

a8150242a8150242 Posts: 3Questions: 1Answers: 0
edited November 2016 in Free community support

I post data by ajax, and get a page of data(processing on the server).
now I use datatable-buttons(excel) to extend file.
how to extend all of data instead of a page of data?

buttons: [{
extend: 'copy',
text: "copy" + "<i class=\"fa fa-copy\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'excel',
text: "excel" + "<i class=\"fa fa-file-excel-o\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'pdf',
text: 'pdf' + "<i class=\"fa fa-file-pdf-o\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'print',
text: '' + "<i class=\"fa fa-print\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}, {
extend: 'colvis',
text: 'colvis' + "<i class=\"fa fa-cog\"></i>",
className: 'btn btn-circle dark btn-outline sbold uppercase'
}
]

This question has an accepted answers - jump to answer

Answers

  • a8150242a8150242 Posts: 3Questions: 1Answers: 0

    i think it need post url by ajax again,but how to?

  • allanallan Posts: 63,205Questions: 1Answers: 10,415 Site admin
    Answer ✓

    You have to create the file on the server-side if you are using server-side processing. See this FAQ.

    Allan

This discussion has been closed.