Issue with multiple DataTables on the same pagge

Issue with multiple DataTables on the same pagge

vismarkvismark Posts: 79Questions: 5Answers: 0
edited July 2017 in Free community support

I've read in the docs that to have multiple DataTables on the same page, it is enough to assign them the same class and then initialise them with a single statement.

My problem is that i am using the sum() plugin found at this link and the last drawn table set the sum for all the other tables.

Moreover, how can I set different export buttons for different tables?

Replies

  • bindridbindrid Posts: 730Questions: 0Answers: 119

    The sample you linked will be applied to every table. If you don't want it to be, you will have to add a table id check where it will exit the function without action if it is not the right table.

    As for the export buttons, they should be taking care of themselves. Are you having an issue there?

  • vismarkvismark Posts: 79Questions: 5Answers: 0

    OK, i solved both proble istantiating them seprately. From the docs i kinda understood there was some kind of automation in this, but i was clearly wrong. Thanks for your help :)

This discussion has been closed.