最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How To Hide Column in jQgrid but show this Column in AddEdit panel - Stack Overflow

programmeradmin4浏览0评论

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 ???

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 ???

Share Improve this question edited Feb 2, 2012 at 10:14 Tomasz Nurkiewicz 341k71 gold badges711 silver badges679 bronze badges asked Feb 2, 2012 at 10:02 PouyaPouya 1,91817 gold badges56 silver badges80 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 12

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 to achieve the opposite (display in the grid but not in the edit dialog):

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"/>
发布评论

评论列表(0)

  1. 暂无评论