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 want to render checkbox to check/uncheck all nested rows. An example to give the idea (custom grouping row component), grouping by A property, then by B and finally by C.
I use TableGroupRow with custom cellComponent to render grouping row (with checkbox). Unfortunately there is no access to inner groups or rows when group is expanded. Please provide a tree structure with inner groups (better) or flatten rows (all nested) data. It should be a part of row object (cellComponent props) and available regardless of the expanded state.
How it is now.
Inner rows can be read only when group is collapsed, two approaches:
Hack, direct access to collapsed rows using row property (symbol). When group is expanded then property is not available.
The mentioned hack refers to Symbol(Symbol(group)_collapsedRows), please note that collapsedRows comes from solution no. 1 (template extends row object)
The text was updated successfully, but these errors were encountered:
karczk
changed the title
[Featrue request] Grid multi-levels grouping - access to inner rows in grouping row
[Feature request] Grid multi-levels grouping - access to inner rows in grouping row
Jan 9, 2020
@karczk Your approach is correct. However, to achieve the maximum performance, I recommend you extract these calculations to the Getter so that they will be recalculated only when the grouping changes.
I'm using ...
Description
I want to render checkbox to check/uncheck all nested rows. An example to give the idea (custom grouping row component), grouping by A property, then by B and finally by C.
I use
TableGroupRow
with customcellComponent
to render grouping row (with checkbox). Unfortunately there is no access to inner groups or rows when group is expanded. Please provide a tree structure with inner groups (better) or flatten rows (all nested) data. It should be a part ofrow
object (cellComponent
props) and available regardless of the expanded state.How it is now.
Inner rows can be read only when group is collapsed, two approaches:
The mentioned hack refers to
Symbol(Symbol(group)_collapsedRows)
, please note thatcollapsedRows
comes from solution no. 1 (template extendsrow
object)The text was updated successfully, but these errors were encountered: