Validate the mui data grid cell and show red border #14976
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
Steps to reproduce
Link to live example: (required)
Steps:
1.
2.
3.
Current behavior
I'm using the DataGrid and want to prevent the user from proceeding before validation.
Currently, I am using preProcessEditCellProps, but it only triggers validation when the cell is focused. I need it to also trigger validation when the save button is clicked
Expected behavior
What I want is on clicking on save button If a cell is empty or incorrectly filled, it should display a red border to indicate the error.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: Validate the mui data grid cell and show red border
The text was updated successfully, but these errors were encountered: