2016-08-18 2 views
0

그리드에서 모든 행을 선택하면 이벤트 rowSelectionChangedBatch가 호출되지 않습니다. 어떻게해야합니까?UI 그리드 이벤트를 어떻게 비활성화합니까?

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

답변

0

같이 selectAll 트리거 $event.stopPropagation(); 사용 후 :

데이터 NG가 클릭 = "grid.appScope.selectAll(); $ event.stopPropagation();"

관련 문제