"visible" not hiding columns datatables.1.10.2

"visible" not hiding columns datatables.1.10.2

clintinsclintins Posts: 1Questions: 1Answers: 0
edited November 2014 in Free community support

I am having great difficulty getting columns to hide. As the table loads they are hidden but when it finishes initialisation all the columns are visible including those that I set "visible" false.

I've tried adding code to initComplete to fire and hide columns, but nothing is hiding the columns on load.

*** Code removed as I found out why.

When I load dataTables.min.js on its own the columns I set to visible false using columnDefs as not visible (correct)
<script type='text/javascript' src='/common/jquery/datatables.1.10.2/js/jquery.dataTables.min.js'></script>

But as soon as I add dataTables.responsive.js all columns become visible. I don't know if I actually need this script, can anyone tell me what the purpose of dataTables.responsive.js is and can it be used alongside jquery.dataTables.min.js? I did have responsive: true as a setting in my datatable but perhaps I can do without this.

Removing this line fixed the problem:
<script type='text/javascript' src='/common/jquery/dataTables.responsive.js'></script>

This discussion has been closed.