best aproach to filter and order formatted data #4786
Unanswered
thiagofernando
asked this question in
General
Replies: 1 comment
-
nobody has pass thru this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
i need to transform the data to show to the user.
Eg from YYYY-MM-DD to DD/MM/YYYY,
from usd 10.99 to usd 10,99.
Anyway, to order i need to use de original data, to filter i need to use the transformed data or both.
dont exist a property in the row with columnId to return the transformed data (row.original, row.getValue and row.renderValue just return the original data).
i tried to pass the transformed data thru accessorFn: row => formatDate(row.field), but with this approach, i loose the original data in order function, and ordering with transformatted data gives me a wrong ordenation.
Beta Was this translation helpful? Give feedback.
All reactions