Change ColVis.aiExclude after initialization.

Change ColVis.aiExclude after initialization.

chauncychauncy Posts: 5Questions: 0Answers: 0
edited November 2013 in General
Hello,

We have a table that displays different amounts of columns depending on another selection parameter. As a result, we initialize dataTables with a aoColumns of the max size we would need and then hide the columns that are unused. We are using colVis to allow the user to hide or show the used columns, but would like to remove the unused columns from the hide/show dropdown by using aiExclude.

Is it possible to alter aiExclude after the dataTable has been initialized?
Where are the colVis settings stored if not in oSettings?

Thanks!

Replies

  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    Currently no - sorry. There is no option to change the excluded columns. This setting is stored internally in ColVis and is not publicly available. Some modifications would need to be made to ColVis to add this ability.

    Allan
This discussion has been closed.