[data grid] Selection of grouped row should behave as the parent selector for child values #5995
Closed
2 tasks done
Labels
component: data grid
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
Duplicates
Latest version
Summary 💡
Currently when pressing the checkbox on a grouped row it only marks that row which is very confusing.
What I feel is a correct behavior:
When pressing the checkbox select on the group parent, it should select all children. When unselecting it should unselect all children. There is a question about the best mark and behavior when only some of the child rows are selected, I would go for not marked, same as checkbox column current behavior, to keep it consistent.
Another way to handle it:
Block selection on auto generated rows. This removed the confusion but reduces usefulness.
Workaround:
Implement a custom selection model to maintain that logic.
Point of interaction:
Examples 🌈
No response
Motivation 🔦
This feature is mainly to keep the behavior of checkbox selection consistent with the parent. Our clients are confused why selecting a group doesn't select its children. Is the row is collapsed you don't really see that nothing is checked unless you actively look at the counter in the button.
Order ID 💳 (optional)
47166
The text was updated successfully, but these errors were encountered: