ColVis get index of hidden Columns/ Also set value of columns to hide

ColVis get index of hidden Columns/ Also set value of columns to hide

TomiiTomii Posts: 2Questions: 0Answers: 0
edited August 2013 in DataTables 1.9
Hello,

first of all congratiulation for the DataTables a realy nice work.
I am implementing it into a self made framework, and it works great so far.
At the moment i am working on the implementations of the plugins. Like TableTools and ColVis.

I got a question about ColVis. I like the ide that the user can define its own columns he want to see or not.
What i would like to do is save that data i mean the indexes or the names if the hidden columns into a database table, together with the ID of the user and the name of the table. So next time he loggs in i just read all the data in the session, and set the indexes (hidden columns). So the user got hes setup permanent.

Is it possible to get/ and set the columns wich i want to hide?

best regrads
Tomi

Replies

  • TomiiTomii Posts: 2Questions: 0Answers: 0
    googled some more and got a sulotion, using bVisible to set tthe data from my session and a callback function to send the hidden columns to ajax. Works perfect. I love this tool.

    best wishes Tomi
This discussion has been closed.