Skip to content

Commit

Permalink
[docs] Fix broken link to the validation section in the Data grid com…
Browse files Browse the repository at this point in the history
…ponent (mui#14973)
  • Loading branch information
arminmeh authored Oct 15, 2024
1 parent 0400006 commit c1e882c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/data/data-grid/recipes-editing/recipes-editing.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ To persist the changes, use <kbd><kbd class="key">Ctrl</kbd>+<kbd class="key">En
## Conditional validation

When all cells in a row are in edit mode, you can validate fields by comparing their values against one another.
To do this, start by adding the `preProcessEditCellProps` as explained in the [validation](#validation) section.
To do this, start by adding the `preProcessEditCellProps` as explained in the [validation](/x/react-data-grid/editing/#validation) section.
When the callback is called, it will have an additional `otherFieldsProps` param containing the props from the other fields in the same row.
Use this param to check if the value from the current column is valid or not.
Return the modified `props` containing the error as you would for cell editing.
Expand Down

0 comments on commit c1e882c

Please sign in to comment.