title: jqGrid Delete Row with ID passed
body: <p><strong>My jqGrid script:</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  var delete_task_url = "/controller/deleteRecordAction";
  var gr = jQuery("#grid").jqGrid('getGridParam','selrow');
  jQuery("#grid").jqGrid({
      url:call_url,
          datatype: "json",
      height: 'auto',
      rowNum: 20,
      rowList: [20,30],
      colNames:['Task#','Project ID','Task Name', 'Start Date', 'End Date', 'Created By', 'Created Date', 'Status', 'Action'],
      colModel:[
          {name:'USER_ID',index:'TASK_ID', align:'center',search:false },
          {name:'USER_NAME',index:'TASK_NAME', search:false},
          {name:'ACTION',index:'link', search:false,align:'center',sortable:false, formatter: 'actions',
          formatoptions: {
              keys: true,
              editformbutton: true,
              delOptions: { url: delete_task_url}
          }},
      ],
      pager: "#page",
      shrinkToFit :true,
      autowidth: true,
      viewrecords: true,
      sortname: 'TASK_ID',
      caption: "Task List",
      gridComplete: function () {
                      var recs = $("#grid").getGridParam("records");
                      $( ".mycontent" ).remove();
                      if (recs == 0 || recs == null) {
                          $('#grid').after("&lt;div class='mycontent' style='color:red;text-align:center'&gt;No Record Found&lt;/div&gt;");
  
                      }
  
                  }
  }).navGrid('#page',{ edit:false,add:false,del:true,search:false,cloneToTop:true,refresh:false},
              {
  
               },{
               //add options
  
  
               },{
  
                          //msg: "do you really want delete this keyword? This delete affect on Eqms filter"
  
                  });
                  jQuery("#grid").jqGrid('filterToolbar', { autosearch: true  });
              var topPagerDiv = $('#grid_toppager')[0]; 
              jQuery("#grid_toppager_center", topPagerDiv).remove();
  
  &lt;/script&gt;
  </code></pre>
  
  <p><strong>Demo Followed:</strong></p>
  
  <p><a href="http://jsfiddle.net/dumbguy5689/9ueDL/6/" rel="nofollow">Working Example</a></p>
  
  <p>I do not have any checkbox where I can pass <code>UserId</code> and based on that selection delete the record. How can I pass <code>UserId</code> when clicked on <code>trash</code> icon and delete the record ?</p>
  
  <p>Thanks.</p>