title: jqgrid delete: not getting value
body: <p>I developing a web application using JSP &amp; Servlet (IDE: Eclipse, Database: Oracle10).</p>
  
  <p>I am using <code>JQGRID</code> to display data in tabular format. I also want functionality of Add, Edit, Delete in <code>JQGRID</code>. So far I have completed Edit Functionality.</p>
  
  <p>Now I want <code>Delete</code> functionality, the problem is that I am not able to <code>pass data from JQGRID to servlet</code>.</p>
  
  <p>Following is my source code:</p>
  
  <pre><code>jQuery("#list10_d2").jqGrid({
                  height: "100%",
                  url:'ProtocolJGridServChildStages?q=2&amp;action=protStages',
                  datatype: "xml",
                   colNames:['Sr. No.','PROTOCOL_ID',  'STAGE_ID',  'DESCRIPTION'],
                   colModel:[{name:'srNo',index:'srNo', width:35,sortable:true},
                             {name:'PROTOCOL_ID',index:'PROTOCOL_ID', width:100,sortable:false},
                             {name:'STAGE_ID',index:'STAGE_ID', width:100,sortable:false},
                             {name:'DESCRIPTION',index:'DESCRIPTION', width:150,sortable:false,editable:true}
                             ],
                  rowNum:5,
                  rowList:[2,4,10],
                  pager: '#pager10_d2',
                  sortname: 'PROTOCOL_ID',
                  viewrecords: true,
                  sortorder: "asc",
                  multiselect: true,
                  editurl: "ProtocolJGridServChildStages?action=protocolStageEdit",
                  caption:"CRM_PROT_STAGES",
                  onSelectRow: function(ids)
                  {
                      if(ids &amp;&amp; ids!==lastsel)
                      {               
                          var ret = jQuery("#list10_d2").jqGrid('getRowData',ids);
                          protID = ret.PROTOCOL_ID;
                          alert(protID);
                          stageID = ret.STAGE_ID;
                          alert(stageID);
  
                          jQuery("#list10_d2").jqGrid('setGridParam',{}, {editurl:'ProtocolJGridServChildStages?action=protocolStageEdit&amp;protID='+protID+'&amp;stageID='+stageID});
                          jQuery('#list10_d2').jqGrid('restoreRow',lastsel);
                          jQuery('#list10_d2').jqGrid('editRow',ids,true);
                          lastsel=ids;
                      }
                  }
              });
              jQuery("#list10_d2").jqGrid('navGrid','#pager10_d2',{add:true,edit:true,del:true},{width:500},{width:500,url: 'ProtocolJGridServChildStages?action=protocolStageAdd&amp;protID='+protID, closeAfterAdd: true},{mtype: 'GET',url: 'ProtocolJGridServChildStages?action=protocolStageDelete&amp;protID='+protID});
              jQuery("#ms1").click( function() {
                  var s;
                  s = jQuery("#list10_d2").jqGrid('getGridParam','selarrrow');
                  alert(s);
              });
  </code></pre>
  
  <p>I am getting <code>protID</code> value <code>undefined</code> in my <code>DeleteServlet</code>.</p>