Visibility setting in columnDefs not being applied
Visibility setting in columnDefs not being applied

Hi,
I'm using DataTables 1.10 with ColVis 1.10.0 and TableTools 2.2.0. My table's data is loaded through AJAX. I'm trying to hide the first and third columns on the table using columnDefs
- but it's not working. Here is the columnDef I'm passing:
{"targets": [0, 3],
"visible": false}
I have other column definitions rules that I set (setting width and boldness on other columns, adding a columns.createdCell
function to certain columns, etc.) - and they are all processed and applied correctly. It seems to be a specific problem with visibility.
However, when I programatically set them using the API column().visible()
- they are properly hidden. I can also hide them using the ColVis menu.
Any ideas? I'm afraid I can't upload my code, as we're behing a closed network...
Answers
Never mind, it seems that the bug is not related to DataTables or to ColVis. Rather, it seems to be caused by the datatables-responsive plugin that we are using.
As of now, we have not found a solution.