AdminLTE icon indicating copy to clipboard operation
AdminLTE copied to clipboard

the exports button on datatable not showing

Open aly14 opened this issue 7 years ago • 7 comments

the exports button on datatable not showing ?

aly14 avatar Mar 24 '19 18:03 aly14

Using chrome right click inspect, check for JS errors. Make sure you have all Datatables plugins link url for the plugins

lenamtl avatar May 02 '19 14:05 lenamtl

Please provide a code example or a demo

REJack avatar May 22 '19 09:05 REJack

AdminLTE v2 doesn't deliver any DataTables plugins, you need to download and setup it.

REJack avatar Jul 10 '19 19:07 REJack

Hi All,

I am using AdminLTE v3.0.4, I am trying to include the export buttons. But with no success. I am getting an error like

DataTables warning: table id=datalist- Cannot reinitialise DataTable. For more information about this error, please see http://datatables.net/tn/3

*datalist is the id of my table.

I get no error on the console.

Does anyone have a solution with this?

vanlalruata avatar Apr 12 '20 14:04 vanlalruata

@vanlalruata Ask please questions like the at the datatables forum.

REJack avatar Apr 12 '20 16:04 REJack

Datatables forum https://datatables.net/forums/

lenamtl avatar Apr 16 '20 15:04 lenamtl

s anyone have a sol

Add this line "Dom": 'Bfrtip',

$("#exampleTable").DataTable({ "Dom": 'Bfrtip', "responsive": true, "lengthChange": true, "autoWidth": true, "buttons": ["copy", "csv", "excel", "pdf", "print", "colvis"] }).buttons().container().appendTo('#exampleTable_wrapper .col-md-6:eq(0)');

I believe the code above will fix your problem. and don't forget to add necessary scripts link in your html page

BinMamun avatar Jul 16 '24 21:07 BinMamun