title: jqGrid - checkbox not getting correct input value?
body: <p>The following is the sample code to test my problem. A local array, mydata, adding into the grid with a checkbox at the last column. You can simple copy and paste to run it immediately to see my problem.</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/style.css"/&gt;
      &lt;link rel="stylesheet" type="text/css" href="css/ui-lightness/jquery-ui-1.8.16.custom.css"/&gt;
      &lt;link rel="stylesheet" type="text/css" media="screen" href="css/ui.jqgrid.css" /&gt;
  
      &lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery-ui.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/grid.locale-en.js" &gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="js/jquery.jqGrid.min.js" &gt;&lt;/script&gt;     
  &lt;/head&gt;
  &lt;body&gt;
      &lt;table id="list4"&gt;&lt;/table&gt;
  
      &lt;script type="text/javascript"&gt;
          jQuery("#list4").jqGrid({ 
          datatype: "local", 
          height: 250, 
          colNames:['Inv No', 'Client','Notes','Checked?' ], 
          colModel:[ 
          {name:'id',index:'id', width:60, sorttype:"int"}, 
          {name:'name',index:'name', width:100}, 
          {name:'note',index:'note', width:150, sortable:false}, 
          {name:'ind_checked',index:'ind_checked', width:100, sortable:false, align:'center', editable:true, 
              edittype:'checkbox', editoptions: { value:"Y:N" },  formatter:'checkbox'}
          ],
          caption: "Testing Check Option" }
          ); 
          var mydata = [ 
          {id:"1",name:"test1",note:"note1",ind_checked:"N"}, 
          {id:"2",name:"test2",note:"note2",ind_checked:"N"}, 
          {id:"3",name:"test3",note:"note3",ind_checked:"N"}, 
          {id:"4",name:"test4",note:"note4",ind_checked:"N"}, 
          {id:"5",name:"test5",note:"note5",ind_checked:"N"}, 
          {id:"6",name:"test6",note:"note6",ind_checked:"N"}, 
          {id:"7",name:"test7",note:"note7",ind_checked:"N"}, 
          {id:"8",name:"test8",note:"note8",ind_checked:"N"}, 
          {id:"9",name:"test9",note:"note9",ind_checked:"N"} ]
          ; 
  
          for(var i=0;i&lt;=mydata.length;i++) {
              jQuery("#list4").jqGrid('addRowData',i+1,mydata[i]);
              var data = jQuery("#list4").jqGrid('getRowData',mydata[i].id);
              alert('Row ID:'+data.id+'; My data:'+mydata[i].ind_checked+'; Data stored in Grid:'+data.ind_checked);
          }
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is </p>
  
  <p>I've set all the field, 'ind_checked', to 'N' in mydata initially;
  after I added mydata into the grid, I tried to get the content back from the grid, and found that they are all 'Y' and stored up incorrectly.</p>
  
  <p>I don't know why and have no any idea. can someone tell my what I'm missing, please? Thank you.</p>
  
  <p>p.s. my version of jqGrid is 4.3.1 </p>