Column hidding
Column hidding
I've a table with many columns. Columns are colgrouped by months and the column's names are repeted in each colgroup.
January | .....December | ||||||
---|---|---|---|---|---|---|---|
Week 1 | .....|||||||
Week 4 | |||||||
... |
The user has to hide week(n). i.e. all columns Week 1, col week 1 from January to December.
I'm trying to hide columns this way but not working:
var table = $('#tabla').DataTable();
var columna = table.column('#week1');
columna.visible(false);
table.column throws Uncaught typeError: undefinied is not a function. The table is well visualized, meaning, there is data in its cells and is properly displayed.
I've try many approaches to hide columns but with no success. I need some help on this.
Thanks,