title: jqgrid dropdown select editoptions
body: <p>I am trying to use the edittype:"select", formatter:"select" and editoptions:{values:'1:Type1;2:Type2'} in my colModel </p>
  
  <pre><code>colModel : [  
           {name:'pk', index:'pk', width:20, sortable:true, jsonmap:'pk',  
            sorttype:'integer'},
           {name:'id', index:'id', align:'left', jsonmap:'fields.id',  
            sortable:true, editable:true, edittype:'select', formatter:'select',  
            editoptions:{value:'1:value1;2:value2;3:value3'},  
           {name:'type', index:'type', width:100,align:'center',  
            jsonmap:'fields.type',  sortable:true,editable:true}  
  ]
  </code></pre>
  
  <p>but the value for id returned in the json object is not a string (it doesn't have quotes around it). If I remove the edittype and editoptions the id value appears in the column of the grid but when I include the edittype, formatter and editoptions in the colMode definition I get the javascript error<br>
  <code>(E||"").replace is not a function</code>  </p>
  
  <p>The json object that fails looks like  </p>
  
  <pre><code> { "pk": 120  
     "model": "myModel"  
     "fields": {  
         "id": 1,
         "type": "aType"
     }
    }
  </code></pre>
  
  <p>The id value has no quotes.</p>
  
  <p>I am using the edittype, formatter and editoptions in other grids but the value I am macthing against is a character (in the json object it is surrounded by quotes) and it works perfectly.</p>
  
  <p>I am only guessing that the problem is with the unquoted number but I am not sure. Has anyone seen this before?</p>
  
  <p>Regards
  Andrew</p>