title: how to trigger onclicksubmit event in jqgrid manually?
body: <p>how to trigger <code>onclicksubmit</code> event in <strong><code>jqgrid</code></strong> manually?</p>
  
  <p>I have a condition ,if it is true I want to call the submit event manually.  Please take a look at the code.</p>
  
  <pre><code>afterShowForm: function (formid) {
      if (condition) {
          jQuery("#editmodgrid").trigger('submit');
      }
  }
  </code></pre>