How To Hide Column in jQgrid but show this Column in Add/Edit panel

前端 未结 2 689
有刺的猬
有刺的猬 2021-02-15 15:05

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 fie

相关标签:
2条回答
  • 2021-02-15 15:21

    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
        }
    
    0 讨论(0)
  • 2021-02-15 15:43

    Use hidden property for your column

    example:

    <sjg:gridColumn name="a_unid" index="a_unid" title="Ref id"  hidden="true"/>
    
    0 讨论(0)
提交回复
热议问题