有时,我们需要隐藏一个列数据,但在启动编辑时又能够被编辑。 1、设置列为编辑:editable: true 2、设置 editrules属性值为: edithidden: true
- colModel: [{
- label: '筛选说明',
- name: 'Remark',
- width: 120,
- editable: true,
- edittype: "textarea",
- //edittype: "text",
- hidden: true,//隐藏字段
- editrules: { edithidden: true }//让隐藏字段可编辑,编辑时显示
- }]
复制代码https://www.cnblogs.com/senyier/p/7308094.html |