QuickFix – Toggle Row Selection in ng-grid when multiselect is false

By default, when a ng-grid is set to single row selection mode (multiselect: false), we cannot deselect the row by clicking on it again.
Here is a quick solution for toggling row selection in ng-grid. You just need to set keepLastSelected: true in gridOptions.
Resources: https://github.com/angular-ui/ui-grid/wiki/Configuration-Options

Leave a Comment

Your email address will not be published. Required fields are marked *