title: How to disable saveRow event ui-grid
body: <p>I am using ui-grid to display my table in UI. I have a requirement where I don't want table to auto-save the data. I want user to edit all data in a table and click a button to update all the edited data. </p>
  
  <p>Above behavioud is working fine but only problem what I am getting is whenever a user edits a cell in a row, after few seconds, that cell becomes grey and uneditable. On browser cnsole I am getting this error:</p>
  
  <p><strong>A promise was not returned when saveRow event was raised, either nobody is listening to event, or event handler did not return a promise</strong></p>
  
  <p>Because of above JS error, whole row becomes un-editable. 
  How to tell ui-grid to don't save the data unless I click my button.</p>
  
  <p>If I handle saveRow event then my button is not working. Please help me in this regard.</p>
  
  <p>Here are the snippets of relevant codes:</p>
  
  <pre><code>    var grid = {
                      data : 'hwData['+key+']',
                      paginationPageSizes: [25, 50, 75],
                      paginationPageSize: 25,
                      enableGridMenu: true,
                      enableFiltering: true,
                      enableSelectAll: true,
                      enableColumnResize : true,
                      exporterCsvFilename: 'myFile.csv',
                      exporterMenuPdf: false,
                      exporterCsvLinkElement: angular.element(document.querySelectorAll(".custom-csv-link-location")),
  
                      onRegisterApi: function(gridApi){
                            $scope.gridApi.push(gridApi);
                            gridApi.edit.on.afterCellEdit($scope,function(rowEntity, colDef, newValue, oldValue){
                                if(oldValue  == newValue){
                                      return false;
                                }
  
  
                                  $("#test").prepend('&lt;font color= "red"&gt; ' +colDef.name+ 'Edited  ');
  
  
                             })
                            },
  
  ..............some more code
  ..............
  $.ajax({
                                          type:'POST',
                                          url:'/HardwareInventory/ajax/storage/edit_owned_storage',
                                          data: jsonHostNames,
                                          dataType:"json",
                                          contentType: "application/json; charset=utf-8",
                                          success : function(result){
                                              if(result.status == "Success"){
  
                                                  location.reload(true);
                                              }else{
                                                  bootbox.alert("Either hostname is not correct or you don't have permission to edit this team's data");
  
  
                                              }
                                          },
                                          statusCode: {
                                              500: function(){
                                                  alert("Oops!, there has been an internal error");
                                              }
                                          },
                                          complete: function(result){
                                          }
                                      });
                                  }
                              });
  </code></pre>