Permanently Hiding a column using ColReorder
Permanently Hiding a column using ColReorder
newtodatatables
Posts: 31Questions: 0Answers: 0
Hi, I am wondering if it is possible to hide a column using ColReorder and do not allow the user the see the hidden column when they click on the tab to unhide columns? I want to refer to some values in the first column without the user being able to see them.
The normal method hides the column but allows the user to unhide it.
[code]
oTable = $('#table').dataTable({
"aoColumns" : [
{"bVisible": false }, //Permanently hide this column
{ sWidth : "50%" },
{ sWidth : "50%" },
],
"sDom": 'C<"clear">lrtip' //do not show first column in the tab
});
[/code]
The normal method hides the column but allows the user to unhide it.
[code]
oTable = $('#table').dataTable({
"aoColumns" : [
{"bVisible": false }, //Permanently hide this column
{ sWidth : "50%" },
{ sWidth : "50%" },
],
"sDom": 'C<"clear">lrtip' //do not show first column in the tab
});
[/code]
This discussion has been closed.
Replies
Allan