Button excel and pdf on multiple table on the same page

Button excel and pdf on multiple table on the same page

jfrjfr Posts: 71Questions: 24Answers: 0

Hi
I am using datatables 1.10.6
I have an application with 3 datatables on the same html page
All of them have buton for excel and pdf but only the first on has the code for the shockwave-flash on it
Is there something special to define when using more then 1 datatables with tableTools extention

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,569Questions: 1Answers: 10,481 Site admin

    Can you link to the page showing the issue please.

    As far as I am aware this should work, but it is quite possible there is a bug here.

    Allan

  • allanallan Posts: 63,569Questions: 1Answers: 10,481 Site admin
    Answer ✓

    Thank you for the link you sent by e-mail. The issue is that only the first table is visible when it is loaded. The other tables are hidden in tabs, which mean that they don't have any height or width and the Flash movie that TableTools uses cannot be sized to fit the tab.

    The fix is to use the fnResizeButtons method whenever a tab is made visible. That will let the Flash buttons be resized to fit. There are a number of discussions about this in the forum if you search for fnResizeButtons.

    Another option is to update to the new Buttons extension with its HTML5 export options which do not require Flash.

    Allan

  • jfrjfr Posts: 71Questions: 24Answers: 0

    Thanks for the help

    And I will check the HTML5

This discussion has been closed.