http://guriddo.net/?kbe_knowledgebase=using-templates-in-form-editing
Using templates in editing forms
Starting with version 4.8, we support templates in editing the form. This allows you to customize the editing form as desired by the developer. To use the template, you must set the parameter template in the settings for adding / adding parameters to the navigator. This can be done in the navigator or in the editGridRow editing method:
$("#grid").jqGrid("navGrid", {add:true, edit:true,...}, {template: "template string for edit",...} {template: "template string for add",...}, ... );
and in the editGridRow method:
$("#grid").jqGrid("editGridRow", rowid, {template: "template string",...} );
To put the CustomerID field in the template, in the template string
insert the following line of code:
{CustomerID}
In other words, this is the name from colModel placed in {}
dattk source share