我想要一种我使用的控制形式。但是字段数太高了。如何显示网格,但只有表单添加/编辑弹出面板中的某些字段显示所有字段???
9146 次
2 回答
12
您可以这样做:
colModel:[
{
name:'email',
label: 'E-mail',
editable: true,
hidden: true,
editrules: {edithidden: true}
}
该E-mail
列不会出现在网格中,但会出现在编辑对话框中。
顺便说一句,实现相反的效果(显示在网格中但不在编辑对话框中):
colModel:[
{
name:'email',
label: 'E-mail',
editable: false
}
于 2012-02-02T10:14:19.123 回答
1
为您的列使用隐藏属性
例子:
<sjg:gridColumn name="a_unid" index="a_unid" title="Ref id" hidden="true"/>
于 2014-04-18T10:27:37.003 回答