I have a ui-grid in my page. I am allowing row edit, few cells in each row are editable. I have a save button and on click of that button I am getting all the dirty rows by $scope.grid1Api.rowEdit.getDirtyRows();
I am taking these dirty row values to the server by $http post request. Once the request is served successfully Again I am retrieving the fresh data from DB and setting it to the grid like $scope.mygrid.data = recentData;
Now the grid shows the recent data. If i try to get the dirty rows now, it should not return any rows. But it returns the old edited rows
If any ideas, please share it.