Cannot Hide Column
Cannot Hide Column
scollege
Posts: 1Questions: 1Answers: 0
Nothing works when I attempt to hide a column.
I've tried each of the following methods:
var pTable = $("#dataTable").DataTable; pTable.api().column(13).visible(false);
var pTable = $("#dataTable").dataTable; pTable.column(1).visible(false);
var pTable = $("#dataTable").dataTable; pTable.api().column(13).visible(false);
var pTable = $("#dataTable").DataTable; pTable.column(1).visible(false);
$(pTable.column(13).header()).addClass('never'); table.responsive.rebuild(); table.responsive.recalc();
var column = pTable.column($(this).attr('data-column')); column.visible(false);
oTable.fnSetColumnVis(13, false);
This discussion has been closed.
Answers
Maybe you can post a test case showing the issue:
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
The first two options seem to work here:
http://live.datatables.net/wavoxiqa/1/edit
Kevin