Buttons extension display issue
Buttons extension display issue
I have an issue similar to
where I get errors on load, which I suspect are due to an incorrect order, but I am unable to find documentation on this.
Although the colvis, copy, csv, and print buttons display correctly, the exel and pdf do not.
"buttons": ['colvis', 'copy', 'csv', 'excel', 'pdf', 'print'],
and these are the errors I get when the page loads in the latest version of Chrome (Version 46.0.2490.86):
Uncaught TypeError: Cannot read property 'defaults' of undefined
buttons.flash.js:658 Uncaught TypeError: Cannot set property 'swfPath' of undefined
buttons.foundation.js:39 Uncaught TypeError: Cannot read property 'defaults' of undefined
buttons.jqueryui.js:39 Uncaught TypeError: Cannot read property 'defaults' of undefined
Here is the order I currently have included:
"~/Scripts/jquery.dataTables.min-1.10.10.js",
"~/Scripts/dataTables.jqueryui.min.js",
"~/Scripts/datatables.bootstrap.js",
"~/Scripts/dataTables.colReorder.min-1.3.0.js",
"~/Scripts/dataTables.autoFill-1.2.1.js",
"~/Scripts/dataTables.scroller.min.js",
"~/Scripts/buttons/buttons.bootstrap.js",
"~/Scripts/buttons/buttons.colVis.js",
"~/Scripts/buttons/buttons.flash.js",
"~/Scripts/buttons/buttons.foundation.js",
"~/Scripts/buttons/buttons.html5.js",
"~/Scripts/buttons/buttons.jqueryui.js",
"~/Scripts/buttons/buttons.print.js",
"~/Scripts/buttons/dataTables.buttons.js"
Also of note, I am using jQuery 2.1.4
Can anyone tell me if I am missing anything or if the order is incorrect? Thank you!!
This question has an accepted answers - jump to answer
Answers
The order looks okay. Can you link to a test page showing the issue so I can debug it please.
Allan
yes, it will take me a few days but i will
Here is the debugger reference: uhabag
Are you able to give me a link to the page please? I don't immediately see the issue from the debugger.
Allan
Hi!
I'm having the same problem as "msand01". Is there any solution?
Mi code crash at lines like:
buttons.bootstrap.js
39 - $.extend( true, DataTable.Buttons.defaults, { ....
Perhaps if you could post a test page that shows the issue I would be able to debug that.
Allan