[英]How To Hide Column in jQgrid but show this Column in Add/Edit panel
I want a form of control I use. 我想要一种我使用的控制形式。 But the number of fields that are too high.
但是字段的数量太高了。 How can I display the grid, but only some of the fields in the form add/edit popup panel show all fields ???
如何显示网格,但只有表格中的一些字段添加/编辑弹出面板显示所有字段???
Here is how you can do this: 以下是如何执行此操作的方法:
colModel:[
{
name:'email',
label: 'E-mail',
editable: true,
hidden: true,
editrules: {edithidden: true}
}
The E-mail
column will not appear in the grid but it will be present in the edit dialog. E-mail
列不会出现在网格中,但它将出现在编辑对话框中。
BTW to achieve the opposite (display in the grid but not in the edit dialog): BTW实现相反(在网格中显示但不在编辑对话框中):
colModel:[
{
name:'email',
label: 'E-mail',
editable: false
}
Use hidden property for your column 为列使用隐藏属性
example: 例:
<sjg:gridColumn name="a_unid" index="a_unid" title="Ref id" hidden="true"/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.