Grouped Column Display Value #1435
Replies: 2 comments
-
I have this same issue. |
Beta Was this translation helpful? Give feedback.
-
In case it helps, I have also made a workaround for custom components.
@sdriffill-tm I hope this helps you with your case. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I've come across an issue where a column's
Cell
function isn't applied when that column is grouped. See minimal reproduction and screenshots below. A workaround is to use an accessorFn to do the value transformation rather than using the Cell function, however in my real-life use case I'm adding initialState sorting on the grouped column and my particular transform will change the sorting results, and I'd rather not have the added complexity of mapping the display value back to the original value.Is there anything I'm missing here to achieve the desired result?
Thanks in advance for any investigation and appreciate this may be an underlying Tanstack Table issue.
With grouping on - displaying the original data value:

With grouping off - applying the Cell fn:

Beta Was this translation helpful? Give feedback.
All reactions