Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jqGrid 上是否有像 flexigrid 一样的隐藏/显示列功能?我希望用户能够隐藏列,这样他们就可以轻松查看相关列(信息)
查看 hideCol() 和 showCol()
$('#tblId').hideCol('column'); $('#tblId').showCol('column');
您也可以使用列索引来代替列名。
但是我还没有看到这个特性的实现(例如直接从标题中选择)。
JQGrid1.Columns.FromDataField(ColumnName).Visible = false;