title: How to get notified when grid changed in AngularJS ui-grid?
body: <p>If there is a way in ui-grid that I can know a grid is finish updating the rows?(like a filter is being applied etc)? I want to run some function after the grid view changes.</p>
  
  <p>I tried the following method:</p>
  
  <pre><code>$scope.filteredRows = $scope.gridApi.core.getVisibleRows($scope.gridApi.grid);
  
  $scope.$watch('filteredRows', function(){console.log('view updated');});
  </code></pre>
  
  <p>The above approach works when the grid just finish initiating, after that, it won't work anymore.</p>
  
  <p>I also tried using the <code>filterChanged</code> api:</p>
  
  <pre><code>$scope.gridApi.core.on.filterChanged($scope, function() {
      console.log('filter changed');
      foo();
  });
  </code></pre>
  
  <p>The problem with this method is that although I can get notified when the filter is changed, but if the grid is very large, it needs some time to finish updating the view, and before that, the function <code>foo()</code> is being called before the grid update is finished. </p>
  
  <p>Any idea will be appreciated.    </p>