john john - 5 months ago 39
Javascript Question

jquery datatables hide column

Is there a way with the jquery datatables plugin to hide (and show) a table column?

I figured out how to reload the table data: using


But my issue is that in one of my views for the table (e.g. a hidden mode) I don't want to show certain columns.


You can hide columns by this command:

fnSetColumnVis( 1, false );

Where first parameter is index of column and second parameter is visibility.

Via: - function fnSetColumnVis