Error when destroying and recreating a datatable with Buttons extension

Error when destroying and recreating a datatable with Buttons extension

finklefinkle Posts: 1Questions: 0Answers: 0

When I create the table the first time the extension works fine but if I destroy the table and recreate it with new data from an outside form I get this error message when clicking on the button to show or hide columns.

TypeError: this.s.subButtons[(idxs[0] * 1)] is undefined
dataTables.buttons.js
Line 614

I've tried removing it from the DOM before destroying the table but it has no affect.
Any ideas?

Replies

  • allanallan Posts: 63,725Questions: 1Answers: 10,505 Site admin

    Hi,

    Can you confirm what version of Buttons and DataTables you are using. If not DataTables 1.10.9 and Buttons 1.0.3 can you try those versions please as I believe this should have been addressed by that release.

    If that doesn't fix it, can you link to the test case showing the issue.

    Regards,
    Allan

This discussion has been closed.