How to hide a column in jQgrid, but show this column in the Add / Edit panel

I need a form of control that I use. But the number of fields is too large. How to display the grid, but only some of the fields in the add / edit popup form show all the fields ???

+7
javascript jqgrid jqgrid-formatter
Feb 02 2018-12-12T00:
source share
2 answers

Here's how you can do it:

colModel:[ { name:'email', label: 'E-mail', editable: true, hidden: true, editrules: {edithidden: true} } 

The E-mail column will not be displayed in the grid, but it will be present in the editing dialog box.

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

 colModel:[ { name:'email', label: 'E-mail', editable: false } 
+11
Feb 02 2018-12-12T00:
source share

Use hidden property for column

Example:

 <sjg:gridColumn name="a_unid" index="a_unid" title="Ref id" hidden="true"/> 
+1
Apr 18 '14 at 10:27
source share



All Articles