2 Datatables with 2 Excel buttons
2 Datatables with 2 Excel buttons
ronchennai
Posts: 3Questions: 1Answers: 0
I have 2 datatables on a single page which populates 2 different datasets onto the datatables. I tried to have 2 Excel buttons on each of those datatables, the 1st one works without any problem, but the 2nd button doesnt trigger anything.
I am attaching both the datatable implementation as an iamge. Please help.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I forgot to add to the existing: If i had a different button like 'csv' , 'print', 'pdf', it works on the 2nd datatable.
I'm able to have two tables with each with working Excel buttons:
http://live.datatables.net/cewokini/1/edit
Please post a link to a page showing the issue.
Kevin
Most of the time the problem in such cases is not using a unique id for each dataTable.
@kthorngren - Kevin, i found out the culprit - it's the old version of js that i was referencing for jquery [http://code.jquery.com/jquery-1.10.2.js ] was causing this issue, not to have 2 excel buttons on the same page for 2 different datatables. Your JS reference [ http://code.jquery.com/jquery-1.11.3.min.js ] solved the issue. Thanks a bunch, pal.