Closed ui-code closed 3 months ago
@ui-code thanks for raising this!
Please provide a minimal reproduction test case with the latest version. This would help a lot 👷 . A live example would be perfect. This codesandbox.io template may be a good starting point. Thank you!
The issue has been inactive for 7 days and has been automatically closed.
Related page
https://mui.com/x/react-data-grid/
Kind of issue
Missing information
Issue description
I was trying to use custom sorting by using value of another column, like below:
Above code works fine, when i am running in development mode (ie., by running
vite
). Howvever, when I am building for deployment (tsc && vite build
), I get this error:After looking in more detail, I realised that GridCellParams doesn't have the properties that param1 has which are api, field, id, rowNode, value.
In documentation, I couldn't find information about the function signature for typescript usage with type to be used for param1 and param2 for using custom sortComparator in Datagrid component.
Context
No response
Search keywords: mui datagrid, sortComparator