angular-ui/ui-grid
Vedi su GitHubgridApi.selection.clearSelectedRows(); doesn't deselect group heading selection
Open
#3851 aperta il 24 giu 2015
grid-selectionhelp wanted
Metriche repository
- Star
- (5395 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
gridApi.selection.on.rowSelectionChanged($scope, function (row) {
console.log(row.entity);
gridApi.selection.clearSelectedRows();
});
This doesn't seems to clear the selection of group heading, but triggers this event
enableRowSelection: true,
enableGroupHeaderSelection: true,
enableRowHeaderSelection: false,
groupingShowCounts: false,
multiSelect: false,
The above are the options i had enabled.
You are also able to select more than 1 group heading. I'm not sure if this is intended.
My use case is: I want the group headings to act like another row, so when i select a group heading, it will be like i selected a normal row and deselect the previously selected row.