我的colmodel定义如下:
<c name='NewShippingAddressCity' index='NewShippingAddressCity' align='left' sortable='false' hidden='true' width='150'></c>
但我不知道为什么这个列仍然可见。我应该改变什么来隐藏它?
我使用jqgrid 4.4.0
编辑1 看起来从某些reaseon隐藏属性变为'undefined'所以te javascript将其设置为false而不是true。
答案 0 :(得分:1)
默认隐藏值为false。试着用引号给它,因为我无法检查你的整个代码,按照这个link有很多方法可以为你提供功能。
或者,您可以使用jqgrid的hideCol属性。请参阅documentation