Open lautarobock opened 6 years ago
any news?
i'm seeing the same. collapseAllGroups() and expandAllGroups() both collapse the groups. Angular 5.2.9, ngx-datatable 11.2.0.
A workaround that I found is to simply re-set your rows data. For example, if your rows input property is set as [rows]="items" then just do "this.items = [...this.items]" in your typescript and this seems to expand all row groups.
any news?
Hi, is there any ways to get the row is expanded or collapsed in row grouping?
A side note: Please make sure that groupRowsBy is not an object! It has to be an id, a name or something stringable & use trackByProp "id", "name" or whatever else you choose ...
I'm submitting a ... (check one with "x")
Current behavior
table.groupHeader.expandAllGroups()
collapse all groupsExpected behavior should exand all groups.
Reproduction of the problem Here is the example. Just the same as your example of row grouping but adding button for expand and collapse. https://lautarobock.github.io/ngx-datatable-bug-expand-all-groups/
What is the motivation / use case for changing the behavior? I need this feature working
Please tell us about your environment:
Table version: 0.8.x
"@swimlane/ngx-datatable": "^11.2.0",
Angular version: 2.0.x
"@angular/core": "^5.0.0"
Browser: [all]
Language: [all]