title: How to delete row in jqgrid
body: <p>in my jqgrid i have an icon and when i click on it I have to call a ajax's function to delete data in my db.</p>
  
  <p>this is the code:</p>
  
  <pre><code>    function loadnotespese(){
       $("#clienti-navgrid").jqGrid( {    
              ....
              colNames:['Tipo spesa','Importo','Unita di misura','Descrizione',''],                 
              colModel:[
                      {name:'category', index:'category', width:'20', sortable:false},  
                      {name:'value', index:'value', width:'10', sortable:false}, 
                      {name:'um', index:'um', width:'5', sortable:false},  
                      {name:'note', index:'note', width:'30', sortable:false},
                      {name:'links', index:'links', width:'5', sortable:false, align:'center', formatter: currencyFmatter, 
                          cellattr: function (rowId, tv, rawObject, cm, rdata) {
                              return ' onClick="deleteNote(' + rowId + ')"';
                          }
                      },
              ],
             ....
          });//jqGrid
  }
  </code></pre>
  
  <p>here the 2 function:</p>
  
  <pre><code>function currencyFmatter(cellvalue, options, rowObject) {
      var cellValue = rowObject.id;
      return "&lt;img title= 'Elimina' src='/images/delete-icon.png' /&gt;";
  }
  
  
  function deleteNote(value){
      var params = {};
      params['idProgetto'] = value;
      $.ajax({
          url: '/project/deletenota.do',
          type: 'GET',
          dataType: 'json',
          data: params,
          success: function(response){
              if (response != "error"){
                  $("#clienti-navgrid").trigger("reloadGrid", [{current: true}]);
                  dialogNotice("Nota spesa inserita&lt;br/&gt; ", 300, 150);
              }
              else 
                  dialogNotice("E' avvenuto un errore nell'inserimento della nota spesa&lt;br/&gt; ", 300, 150);
              }
      });
  }
  </code></pre>
  
  <p>is it correct call deleteNote() like this? or i wrong something? because nothing happens. </p>
  
  <p>Thanks </p>