开发者

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

开发者 https://www.devze.com 2023-03-10 16:11 出处:网络
Is there a hide/show column func开发者_运维百科tionality 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)C

Is there a hide/show column func开发者_运维百科tionality 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)


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).


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

精彩评论

暂无评论...
验证码 换一张
取 消