[data grid] Make row spanning triggering for each column explicit rather than implicit #16491
Labels
component: data grid
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
feature: Row spanning
Related to the data grid Row spanning feature
RFC
Request For Comments
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
waiting for 👍
Waiting for upvotes
Summary
The issue aims to validate the idea to make the row spanning behavior explicit for each column to avoid
unnecessary computationunintentional computation.A possible API interface change to achieve it:
The
rowSpanning
prop would be removed andcolDef.rowSpanValueGetter
would be an indicator of whether to span the rows for a particular column.Quoting the original request:
Originally posted by @lauri865 in #14691
Examples
Imagine a list of stock prices – two stocks next to each other can randomly have the same price at some point in time, but there's little value in spanning them, as it may well change on next refresh. And it also adds to cognitive load to actually reading the data.
Or a list of customer orders – I would love to link together orders by the same customer and orders of the same product perhaps, but at the same time there may be 50 orders with a status "unpaid". Now I need to redesign the Status cell component to have a sticky position or something along the lines to be visible when scrolling. Which means that the default behaviour unknowingly breaks the UX if I'm not paying attention to every permutation of the view. And it might not even be apparent that this happens, because it may only do so when sort order is changed, and since I didn't test every permutation, I may have forgotten to turn this feature of for a column I didn't want it enabled for in the first place.
Motivation
No response
Search keywords: row spanning
The text was updated successfully, but these errors were encountered: