From c1e882ce9832b2a52a9d620a1d8b70a3dbad3059 Mon Sep 17 00:00:00 2001 From: Armin Mehinovic <4390250+arminmeh@users.noreply.github.com> Date: Tue, 15 Oct 2024 13:31:14 +0200 Subject: [PATCH] [docs] Fix broken link to the validation section in the Data grid component (#14973) --- docs/data/data-grid/recipes-editing/recipes-editing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/data/data-grid/recipes-editing/recipes-editing.md b/docs/data/data-grid/recipes-editing/recipes-editing.md index 10cc2c823d64..45794192612e 100644 --- a/docs/data/data-grid/recipes-editing/recipes-editing.md +++ b/docs/data/data-grid/recipes-editing/recipes-editing.md @@ -14,7 +14,7 @@ To persist the changes, use Ctrl+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.