broken url and colvis multiple table question

broken url and colvis multiple table question

webguruwebguru Posts: 16Questions: 0Answers: 0
edited February 2011 in Plug-ins
I have multiple tables on a page and instead of initializing the colvis plugin on each one I need one selection box that would control column display for all tables.

There is a link on your site called "Two tables initialised together" that leads to a dead page:
http://www.datatables.net/release-datatables/extras/ColVis/two_tables.html

It seems like that page once held the information I am after.... any help?

Replies

  • allanallan Posts: 61,665Questions: 1Answers: 10,096 Site admin
    The two columns example isn't actually released yet - sorry for the dead link :-(. You can grab the latest source which will work with the two tables example from Github: https://github.com/DataTables/ColVis .

    However, it doesn't sound like it is exactly what you need - that will just show two tables with two different boxes for ColVis (one for each column). What it sounds like you need is http://datatables.net/api#fnSetColumnVis which allows a custom implementation of column visibility and you can control the visibility of multiple columns from a single control (if you set it up that way).

    Allan
This discussion has been closed.