解决方法
是的,您可以从beforeSelectionChange返回false以禁用更改网格上的选定行.
$scope.option = { enableRowSelection: true,}; $scope.gridOptions = { data: 'myData',beforeSelectionChange: function() { return $scope.option.enableRowSelection; } //,... };
HTML:
06001
示例代码:http://plnkr.co/edit/PbhPzv?p=preview
另见:https://github.com/angular-ui/ng-grid/wiki/Configuration-Options