title: Pass RowData to Custom_func in Jqgrid
body: <p>I have a jqgrid with certain columns. I am trying to call a custom_function to validate the cell value.</p>
  
  <p>I am also getting a regular expression from the database into rowData, which I want to use to validate the cell value.</p>
  
  <pre><code>var ret = jQuery("#settingsListGrid").jqGrid('getRowData', id);
  cm.editrules = {
      required: true, 
      custom: true, 
      custom_func: ValidateData, 
      custom_value:ret.RegX 
  };
  </code></pre>
  
  <p>So I need to pass rowData to a custom function.</p>
  
  <pre><code>ValidateData = function (value, colname, customValue) {
      return customValue.test(value) ?
          [true] :
          [false, "Invalid Data"];
  }
  </code></pre>
  
  <p>I want to pass the rowData using <strong>customValue</strong> </p>
  
  <p>Please help?  </p>