Open tiddle opened 9 years ago
I would like to see this resolved as well. How can one programatically deselect a group header at this time?
The work around i did for this was to rearrange the data to include row headers in the data.
Which is not quite ideal but works.
I'm having this same issue. Even with multiSelect: false
row headers remain selected. I want selecting the row header to select all children, clearing other selections, including other row headers. I can't see how I can programmatically deselect a row header. selection.unSelectRow( rowHeader.entity );
doesn't do anything.
I have the same issue where the group row headers remain selected when the gridApi.selection.clearSelectedRows() is called.
Has there been a resolution to this? Any other programmatic way to deselect group header rows?
https://github.com/angular-ui/ui-grid/issues/4983
I found how to change the checkbox programmatically:
api.grid.treeBase.tree.forEach(function(branch){
branch.row.isSelected = false;
});
This doesn't seems to clear the selection of group heading, but triggers this event
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.
http://plnkr.co/edit/SCPMbOIlF4tNbB7MX0Hx?p=preview