I have a problem in jquery dataTables. The "Export to Excel" is not showing in iPad and mobile devices. It is showing in desktop. Other buttons like copy, csv and pdf are showing in iPad and desktop. Here is my code :
$('#productDatatable').DataTable({
dom: 'Bfrtip',
buttons: [
'copy', 'excel', 'pdf', 'csv'
]
} );
Try loading required JS libraries in the following order, if anyone still having issues in showing the DataTable export buttons.
Cheers!
Just add these references before your data table script. It works for me.
For generating Datatable use this -
And for data table button use these references -
You should refer to the
★html5
versionsReason: When using
copy
,excel
etc, you are in fact in risk of referring to the flash implementation, which really should be considered as a fallback only. Flash is removed / disabled from iPads and most smartphones, thats why the Excel button not is working. If you still have problems, ensure you have included these library files