title: Total Of Amount in jqGrid
body: <p>I am Use jqGrid.</p>
  
  <pre><code>$("#list").jqgrid(){
      ....
      editurl:"editMedicineGridData.html",
      onCellSelect : function(rowid, iCol, cellcontent) {
          $('#prescribedDate').val(jQuery("#madicineGrid").jqGrid('getCell',rowid, 'PrescriptionDate'));
      },
      gridComplete: function(){ 
          var grid = $("#madicineGrid"),
              sum = grid.jqGrid('getCol','totalAmount', false, 'sum');
          $('#totalMedicineCharge').html(sum);
      },
      ondblClickRow: function (rowid,name,val,iRow,iCol) {
          $(this).jqGrid('editRow', rowid, true, null, null, null, {}, function (rowid) {
          });
      },
      afterSaveCell : function(rowid,name,val,iRow,iCol) {
          if(name == 'SaleQuantity') {
              var Qval = jQuery("#madicineGrid").jqGrid('getCell',rowid,iCol+1);
              var Aval = jQuery("#madicineGrid").jqGrid('getCell',rowid,iCol);
              jQuery("#madicineGrid").jqGrid('setRowData',rowid,{totalAmount: parseFloat(Aval) * parseFloat(Qval)});
          }
          var grid = $("#madicineGrid"),
              sum = grid.jqGrid('getCol','totalAmount', false, 'sum');
         $('#totalMedicineCharge').html(sum);
      } 
  });
  </code></pre>
  
  <p>so I want Update my data and Change it.
  My Problem is that when I use Double Click row event i cant call <code>afterSaveCell</code> Event and When I use <code>afterSaveCell</code> Event Dosen`t Update my data.
  I want Both.so What's Solutions.</p>