Cannot Hide Column

Cannot Hide Column

scollegescollege Posts: 1Questions: 1Answers: 0

Nothing works when I attempt to hide a column.

I've tried each of the following methods:

  1.          var pTable = $("#dataTable").DataTable;
            pTable.api().column(13).visible(false);
    
  2.          var pTable = $("#dataTable").dataTable;
            pTable.column(1).visible(false);
    
  3.          var pTable = $("#dataTable").dataTable;
            pTable.api().column(13).visible(false);
    
  4.          var pTable = $("#dataTable").DataTable;
            pTable.column(1).visible(false);
    
  5.           $(pTable.column(13).header()).addClass('never');
            table.responsive.rebuild();
            table.responsive.recalc();
    
  6.          var column = pTable.column($(this).attr('data-column'));
            column.visible(false);
    
  7.          oTable.fnSetColumnVis(13, false);
    

Answers

This discussion has been closed.