如何禁用 ui-grid 事件?

How do i disable ui-grid events?

我希望当我 select 网格中的所有行不调用事件 rowSelectionChanged Batch 时,我该怎么做?

$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();
}

在使用 selectAll 触发器 $event.stopPropagation(); 之后:

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