Grouped Column Display Value #1435
sdriffill-tm
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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