Skip to content

Is there any way to dynamically change gridOptions.enableRowSelection? #2394

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ncourtial opened this issue Dec 18, 2014 · 1 comment
Closed
Assignees
Milestone

Comments

@ncourtial
Copy link

I'm trying to dynamically disengage row Selection b y clicking on a button.
Would there be any to do this?

I'm trying to use a button binded on this function but it doesn't work.

$scope.selectionMode = true;
$scope.toggleEditingMode = function () {
$scope.$apply(function () {
$scope.selectionMode = ! $scope.selectionMode
$scope.gridOptions.enableRowSelection = $scope.selectionMode;
})
}

@PaulL1
Copy link
Contributor

PaulL1 commented Dec 19, 2014

Many of the gridOptions aren't dynamic - they get set once and then stay that way forever. You may get some success through calling notifyDataChange, but I suspect it's another example of #1819

@PaulL1 PaulL1 self-assigned this Dec 19, 2014
@PaulL1 PaulL1 added this to the 3.0 milestone Dec 19, 2014
@PaulL1 PaulL1 closed this as completed in 052f10e Dec 21, 2014
PaulL1 added a commit that referenced this issue Dec 21, 2014
Fix #2394 (selection): make enableRowSelection dynamic
@c0bra c0bra removed the in progress label Dec 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants