title: jqGrid: Get parent row id in custom validation function of subgrid
body: <p>Can any one suggest me how can I get parent row id in the custom validation function of sub grid?</p>
  
  <p>This is a my code</p>
  
  <pre><code> subGrid: true,
                  subGridRowExpanded: function (subgrid_id, row_id)
                  {
  
                      var subgrid_table_id;
                      subgrid_table_id = subgrid_id+"_t";
                      var subgrid_pager_id = subgrid_id+"_p";
                      jQuery("#"+subgrid_id).html("&lt;table id="+subgrid_table_id+"  class=scroll&gt;&lt;/table&gt;&lt;div  id="+subgrid_pager_id+" &gt;&lt;/div&gt;");
                      jQuery("#"+subgrid_table_id).jqGrid(
                      {
                          url:"form_subgrid_ajax_296.php?id="+row_id+"&amp;child_form_id=296",
                          editurl:"../ajax/common_subgrid_edit_296.php?form_id="+sub_grid_id+"&amp;parent_id="+row_id,
                          datatype: "json",
  
                          colNames: ['ID','PESO'],
                          colModel: [{name:'id',index:'id',editable:false,hidden:true},
                              {name:'peso',
                      index:'peso',
                      formoptions:{elmsuffix:''},editrules:{required:true,custom:true, custom_func:customNumberChk},editable:true,
                                  hidden:false,
                                  search:true,
                                  editoptions: {size:80, maxlength: 1000}
                                  }],
                          sortorder: "asc",
                          height: 300,
                          loadonce: false,
                          width: 500,
                          rowNum:10, 
                          rowList:[10,20,50],
                          sortname: 'id',
                          sortorder: "asc",
                          cellEdit: false,
                          cellsubmit: "clientarray",
                          caption:"Child",
                          pager: subgrid_pager_id
                      });
                      jQuery("#"+subgrid_table_id).jqGrid
                      (
                      "navGrid",
                      "#"+subgrid_pager_id,
                      {
                          edit:true,
                          add:true,
                          del:true,
                          search:false
                      },
                      {
                          width:780,
                          recreateForm:true
                      },
                      {
                          width:780,
                          recreateForm:true
                      }
                    );
                  }
  </code></pre>
  
  <p>Now look at the <strong>name:'peso',index:'peso',</strong> .I have used custom function customNumberChk.</p>
  
  <p>This is my custom function</p>
  
  <pre><code>function customNumberChk(value,colname)
  {
  
  }
  </code></pre>
  
  <p>I want rowid in this function.</p>