Buttons copy/csv/excel/print only page data
Buttons copy/csv/excel/print only page data
emeg
Posts: 2Questions: 1Answers: 0
Hello, I'm trying to use buttons to export all the data but I get only data from the page I see (10 over 16 rows). This is an excerpt from my JS file:
var dataTable = $('#user_data').DataTable({
language: {
url: "//cdn.datatables.net/plug-ins/1.10.18/i18n/Italian.json",
},
autoWidth: false,
dom: 'Bfrtip',
buttons: [
{
extend: 'copy',
text: 'Copia',
},
'csv',
'excel',
'pdf',
{
extend: 'print',
text: 'Stampa',
autoPrint: false
},
{
extend: 'colvis',
text: 'Colonne',
postfixButtons: [ 'colvisRestore' ]
}
],
processing:true,
serverSide:true,
order:[],
paging: true,
ajax:{
url:"fetch.php",
type:"POST"
}
})
Cuold you help me?
Thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
https://datatables.net/forums/discussion/50450/is-it-possible-to-print-all-data-when-we-use-server-side-call-to-load-data-tables
Thanks a lot!