0

I want that when i select all rows in a grid doesn't call the event rowSelectionChangedBatch, how do i do this?

$scope.gridOptions.onRegisterApi: function(gridApi) {
      gridApi.selection.on.rowSelectionChangedBatch($scope, function() {
          /* Do something */
      });
}

/* More code */
function selectAll() {
    /* After execute this, should not call the event */
    $scope.gridApi.selection.selectAllRows();
}
A. Horst
  • 78
  • 8

1 Answers1

0

After using selectAll trigger $event.stopPropagation(); like this:

data-ng-click="grid.appScope.selectAll(); $event.stopPropagation();"