Column Visibility

Column Visibility

JakkalJakkal Posts: 2Questions: 1Answers: 0

Trying to hide a column including the header. Test results are the same in Firefox and Chrome.

When I use "columnDefs" the header still appears.
$('#example').DataTable( {
"columnDefs": [
{ "visible": false, "targets": [ 2 ] }
] } );

When I try using "column" or "columns" neither has any affect on visibility.
$('#example').dataTable( {
"columns": [
{ "visible": false },
null,
null,
null,
null
] } );
} );

Answers

This discussion has been closed.