title: Add Custom Button in Edit Form
body: <p>I have added a custom button in my jqGrid Edit form, created using <strong>beforeShowForm</strong> event. Onclick of custom button i want to perform <strong><em>ADD</em></strong> operation. 
  below are my code ..</p>
  
  <pre><code> beforeShowForm: function(form) { 
            //Create Custom ADD Button
            $('&lt;a href="#"&gt;Add&lt;span class="ui-icon ui-icon-disk"&gt;&lt;/span&gt;&lt;/a&gt;')
              .click(function() {
                  var $self = $(this);
                 $self.jqGrid("editGridRow", $self.jqGrid("getGridParam", "selrow"),
                  {
                    editData: {//Function to Add parameters to the status 
                      oper: 'add', //trying to pass parameter to server
                    },
                  });
              }).addClass("fm-button ui-state-default ui-corner-all fm-button-icon-left")
                .prependTo("#Act_Buttons&gt;td.EditButton");
  </code></pre>
  
  <p>the Code<br>
   <code>editData: {//Function to Add parameters to the status 
                          oper: 'add', //trying to pass parameter to server
                        },</code>  </p>
  
  <p>shows <strong>TypeError: a(...)[0].p is undefined</strong>  error . Any idea how to achieve this??</p>
  
  <p><img src="https://i.stack.imgur.com/C3oni.jpg" alt="Add Button"></p>