john john - 1 year ago 168
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download