如何在jQgrid中隐藏列,但在“添加/编辑”面板中显示此列 [英] How To Hide Column in jQgrid but show this Column in Add/Edit panel

查看:92
本文介绍了如何在jQgrid中隐藏列,但在“添加/编辑”面板中显示此列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一种我使用的控制形式。但是字段的数量太高了。如何显示网格,但只有表格中的一些字段添加/编辑弹出面板显示所有字段???

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.

要实现相反的BTW(在网格中显示,但在编辑对话框中):

BTW to achieve the opposite (display in the grid but not in the edit dialog):

colModel:[
    {
        name:'email',
        label: 'E-mail',
        editable: false
    }

这篇关于如何在jQgrid中隐藏列,但在“添加/编辑”面板中显示此列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆