title: free jqGrid : how to assign function return value to edit/addNew form field?
body: <p>my code is</p>
  
  <pre><code>  ......
    ......
    {label: 'Reason'
     ,name: 'reason'                      
     ,width: 60
     ,editable: true
     ,editrules : { required: true}
     ,editoptions: { maxlength: 4 }
     ,formoptions:{rowpos: 5, colpos: 2, label: " &lt;a href='javascript:selectRsnRecord()' " +
                             " title='See the list of all Reason codes' &gt; Reason&lt;/a&gt; " } 
                  },
  
    ......
    ......
  </code></pre>
  
  <p>when I click on Reason label on the Edit/Add new form, the function selectRsnRecord() gets the reason value. This new reason value should go into Reason text box on the edit/add new form. I can able to get the reason value but I'm not getting how to show/assign the value on the jqGrid edit /add new form text box. with the following, I can see the new reason value on the grid.</p>
  
  <pre><code>myGrid.jqGrid('setCell', selectedRowId, 'reason', newValue);
  myGrid.jqGrid('getLocalRow', rowid).reason= newValue;
  </code></pre>
  
  <p>I'm using jqgrid 4.9.0 version and its not possible for me to use any other plugin.</p>
  
  <p>Please let me know how to show/assign the new reason value on the jqGrid edit /add new form text box itself.</p>