Hiding a colum

Hiding a colum

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited November 2012 in DataTables 1.9
Hi,

I want to hide a column (but still filter on it).

The filter works (oTable.fnFilter( 'Active', 0 );), but the column is not hiding. It is always shown (see below).

[code]

{
"bVisible": false,
"mData": "EActive",
"mRender": function(val, type, row)
{
return (val == 1) ? "Active" : "Hidden";
}

},

[/code]

HTML

[code]












n
r
o
p
e
d




[/code]

I am following the documentation here; why is this column not being hidden?

Thanks,

Nathan

Replies

  • allanallan Posts: 63,394Questions: 1Answers: 10,450 Site admin
    bVisible should work okay as can be seen in this example: http://datatables.net/release-datatables/examples/basic_init/hidden_columns.html .

    Please post a link to an example test case which doesn't work.

    Allan
This discussion has been closed.