column visible in DatabTable not working
column visible in DatabTable not working
rahulcapgemi
Posts: 8Questions: 3Answers: 0
Hello All
I am replacing fnSetColumnVis method from column.visible method . But its throwing an error ,its not a function
var oTable = $("#hfLibTable").dataTable();
//oTable.fnSetColumnVis( 6, false );
oTable.column( 6 ).visible(false);
Please advise
This discussion has been closed.
Replies
Please see this FAQ.
Kevin
is their any mistake . Please guide I am new in DataTable code
Hi @rahulcapgemi ,
Kevin pointed you to the answer in his link. The problem is because you're getting a jQuery handle with this:
Change that to this:
And all will be ok,
Cheers,
Colin