Dynamically Hiding Columns from the Hide/Show List
Dynamically Hiding Columns from the Hide/Show List
![shawnfoster](https://secure.gravatar.com/avatar/2d5d5293afee4047913a29c6a12c0f69/?default=https%3A%2F%2Fvanillicon.com%2F2d5d5293afee4047913a29c6a12c0f69_200.png&rating=g&size=120)
I have a data table that has already been initialized and I would like to dynamically hide columns from the hide/show list of the table. When initialized, it is easy to set this using the aiExclude setting. But how to I then access my data table and change this setting on the fly?
Thanks in advance.
Shawn
Thanks in advance.
Shawn
This discussion has been closed.
Replies
[code]
var oTable = $('#myTable').dataTable();
var settings = oTable.fnSettings();
settings.aiExclude = [3];
[/code]
Allan