You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can toggle multiselect using the api: $scope.gridApi.selection.setMultiSelect(!$scope.gridApi.grid.options.multiSelect);
but there is no way to toggle the RowHeaderSelection: $scope.gridApi.selection.setRowHeaderSelection(!$scope.gridApi.grid.options.enableRowHeaderSelection);
changing the gridOptions does not work either. $scope.gridApi.grid.options.enableRowHeaderSelection = false;
The text was updated successfully, but these errors were encountered:
I don't think we're planning on allowing the rowHeader for selection to come and go - you set it up front or you don't. If you're not using the rowHeader, you can turn selection on and off dynamically, as demonstrated in the selection tutorial.
now, reload the page the grid is on and load the setting:
var selectionState = localStorageService.get('selectionState');
if (selectionState != null || selectionState != undefined) {
gridOptions.enableRowHeaderSelection = selectionState;
}
the disadvantage is of course having to reload the grid, but being able to toggle this column is great. I use it combined with the save state call, inspired by: http://plnkr.co/edit/LAMZvOkpx6jsD4CWSz04?p=preview
Also, the code samples need to be interpreted to fit your method of loading the gridOptions initially.
I can toggle multiselect using the api:
$scope.gridApi.selection.setMultiSelect(!$scope.gridApi.grid.options.multiSelect);
but there is no way to toggle the RowHeaderSelection:
$scope.gridApi.selection.setRowHeaderSelection(!$scope.gridApi.grid.options.enableRowHeaderSelection);
changing the gridOptions does not work either.
$scope.gridApi.grid.options.enableRowHeaderSelection = false;
The text was updated successfully, but these errors were encountered: