Green Lantern
Green Lantern

Reputation: 868

Is there a hide/show column functionality on jqGrid like in flexigrid?

Is there a hide/show column functionality on jqGrid like in flexigrid? I want the user be capable of hiding columns, so it will be easy for them to review related columns(informations)

Upvotes: 4

Views: 8814

Answers (2)

kirk
kirk

Reputation: 1007

JQGrid1.Columns.FromDataField(ColumnName).Visible = false;

Upvotes: 0

dertkw
dertkw

Reputation: 7838

Check out hideCol() and showCol()

$('#tblId').hideCol('column');

$('#tblId').showCol('column');

Instead of the column name you can use the column index, too.

But I haven't seen this feature implemented (e.g. selecting from the header directly).

Upvotes: 7

Related Questions