title: jqGrid add button in Navigation Toolbar does not work
body: <p>I am trying to create a grid that allows user to add, edit and delete the record. I have done working for populating grid now I am going to display dialog for add record. But, I don't why it doesn't work. Dialog does not getting displayed.</p>
  
  <p>This is the snapshot of my grid.</p>
  
  <p><img src="https://i.stack.imgur.com/ATOTN.png" alt="enter image description here"></p>
  
  <p>and this is my js function</p>
  
  <pre><code>InfoDesk.GridManager.postsGrid = function (gridName, pagerName) {
      //Create the grid
      $(gridName).jqGrid({
          //server url and other ajax stuff
          url: '/Admin/Posts',
          datatype: 'json',
          mtype: 'GET',
  
          height: 'auto',
  
          //Columns
          colNames: colNames,
          colModel: columns,
  
          //pagination options
          toppager: true,
          pager: pagerName,
          rowNum: 10,
          rowList: [10, 20, 30],
  
          //row number columns
          rownumbers: true,
          rownumWidth: 40,
  
          //default sorting
          sortname: 'PostedOn',
          sortorder: 'desc',
  
          //display the no. of records message
          viewrecords: true,
  
          jsonReader: { repeatitems: false },
  
          afterInsertRow: function (rowid, rowdata, rowelem) {
              var tags = rowdata["Tags"];
              var tagStr = "";
  
              $.each(tags, function (i, t) {
                  if (tagStr) tagStr += ", "
                  tagStr += t.Name;
              });
  
  
              $(gridName).setRowData(rowid, { "Tags": tagStr });
  
          }
  
  
      });
  
      $(gridName).navGrid(pagerName,
                       {
                           cloneToTop: true,
                           search: false,
                           add:true
                       }, editOptions, addOptions, deleteOptions);                
      };
  </code></pre>
  
  <p>When I click on add button. Nothing is happening. This is my first project with jqGrid. So, I am completely blank about it. </p>
  
  <p><strong>EDITED:</strong></p>
  
  <p>I have found a fiddle example and modified for navigation bar. It is working fine but, still I could not recognize the issue where i am doing mistake in my code. </p>
  
  <p><strong><a href="http://jsfiddle.net/yNw3C/9800/" rel="nofollow noreferrer">fiddle</a></strong></p>