Column hidding
Column hidding
![itassets](https://secure.gravatar.com/avatar/8a98fe44fe608de2375c7fb10696ee46/?default=https%3A%2F%2Fvanillicon.com%2F8a98fe44fe608de2375c7fb10696ee46_200.png&rating=g&size=120)
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,