I am unable to add a excel export button
I am unable to add a excel export button

i have added the code to add download button on my datatable but it is not showing what could i be missing.
see snippet
tables: {
instructions: $('#returnsTable').DataTable({
buttons:"excel",
responsive: true,
bFilter: false,
processing: true,
language: {
loadingRecords: "Please wait - loading...",
processing: '<div></div><div></div><div></div><div></div><div></div>'
},
serverSide: false,
Replies
Hi,
Thanks for your question. As noted in the forum rules, please post a link to a running test case showing the issue so we can offer some help. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Allan
Based on your code snippet it doesn't look like you told Datatables where to place teh buttons using the
layout
option. See these docs for more details. Also see this example.Kevin
i have tried the positioning of the button no luck.
Can you show us your latest code please, or even better a link to the page showing the issue, as required in the forum rules?
Allan
i cannot send a link as it is locked behind user authentication,
here is the new code
Assuming you have Buttons, the HTML 5 export buttons and JSZip loaded on your page, then the above should cause the export button to show.
Perhaps you could create a temporary login and PM it to me, or use JSFiddle or similar to create a test case? I'm sure you can appreciate that it is very hard to debug something that is working in the demos but being told it isn't working in a case which I can't see.
Allan