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