Skip to content

Commit c88185d

Browse files
authored
Update validation.md (#1402)
1 parent cb42430 commit c88185d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/form/validation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To enable validation in the Telerik Form for Blazor add the `<FormValidation>` t
5858
}
5959
````
6060

61-
When you provide an `EditContext` to the form, you cold use its `AddDataAnnotationsValidation()` method to add the data annotation validation to the form, instead of using the markup. This can be useful when you will be changing the model the form is bound to at runtime, for example, when you [add a reset button]({%slug form-formitems-buttons%}#how-to-add-a-reset-clear-button-to-the-form). Alternatively, you could call this method to re-attach validation on the `Model` you pass when you change it by using the [reference to the Form component]({%slug form-overview%}#component-reference) - `TheFormReference.EditContext.AddDataAnnotationsValidation()`.
61+
When you provide an `EditContext` to the form, you could use its `AddDataAnnotationsValidation()` method to add the data annotation validation to the form, instead of using the markup. This can be useful when you will be changing the model the form is bound to at runtime, for example, when you [add a reset button]({%slug form-formitems-buttons%}#how-to-add-a-reset-clear-button-to-the-form). Alternatively, you could call this method to re-attach validation on the `Model` you pass when you change it by using the [reference to the Form component]({%slug form-overview%}#component-reference) - `TheFormReference.EditContext.AddDataAnnotationsValidation()`.
6262

6363
@[template](/_contentTemplates/common/form-validation.md#note-validation)
6464

@@ -263,4 +263,4 @@ You can use third-party validation libraries that integrate with the standard `E
263263
}
264264
}
265265
}
266-
````
266+
````

0 commit comments

Comments
 (0)