Multiple Tables - How to activate / de-activate individual tables

Multiple Tables - How to activate / de-activate individual tables

CoggsflCoggsfl Posts: 6Questions: 0Answers: 0
edited July 2013 in General
Hi there,

I'm migrating over from the TableSorter plugin, and need to implement DataTables on multiple tables in a single page. As I expand any table I need to initialize DataTables (No problem, that works fine), but when I collapse the table I need to de-activate DataTables.

Basically I need to know how to unbind DataTables.

You can take a look at my public site to see what I mean about expanding / collapsing tables.

http://www.expired-domains.co

Thanks
Rich

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Hi Rich,

    You'd use fnDestroy to destroy a table you no longer want. Is that what you are looking for?

    Allan
  • CoggsflCoggsfl Posts: 6Questions: 0Answers: 0
    Hi Allan,

    That worked a treat, thanks for your help!!

    Great plug-in, keep up the excellent work!

    Thanks
    Rich
  • CoggsflCoggsfl Posts: 6Questions: 0Answers: 0
    Thanks again Allan - managed to make the conversion from TableSorter and it's now running nicely in production - http://www.expired-domains.co

    Rich
This discussion has been closed.