# Blazor Validation Tools Overview

Telerik UI for Blazor provides different ways to show and customize validation messages. The validation tools can be used together with the [Telerik Form](https://www.telerik.com/blazor-ui/documentation/components/form/overview) or with any form that provides an [`EditContext`](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.forms.editcontext) like the [standard Blazor `EditForm`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.forms.editform).

The Telerik Blazor validation tools let you match the style of your validation messages to all other Telerik Blazor components in your app. The validation tools do not expose API or settings for specific validation logic. You need to handle the validation logic separately and then use the Telerik Blazor UI components to display messages to the end user.

## Validation Tools

Telerik UI for Blazor provides the following validation tools to help you style your form validation:

* [Validation Summary](https://www.telerik.com/blazor-ui/documentation/components/validation/summary)
* [Validation Message](https://www.telerik.com/blazor-ui/documentation/components/validation/message)
* [Validation Tooltip](https://www.telerik.com/blazor-ui/documentation/components/validation/tooltip)

These components add default styling and customization options on top of the standard Blazor validation tools `ValidationSummary` and `ValidationMessage`.

The validation components must receive an [EditContext](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.forms.editcontext) instance as a cascading parameter, so they can reside in a [Telerik Form](https://www.telerik.com/blazor-ui/documentation/components/form/overview) or a standard Blazor `EditForm`.

> When using the [Form `EditContext` parameter](https://www.telerik.com/blazor-ui/documentation/components/form/overview#creating-blazor-form) together with [validation components](https://www.telerik.com/blazor-ui/documentation/components/validation/overview) or [Form item `<Template>`s](https://www.telerik.com/blazor-ui/documentation/components/form/formitems/template), make sure to create the `EditContext` from the model instance, which is used by the validation components and inside the Form item templates. Otherwise, the Form will not update the correct object instance and validation will not work as expected.

> The Telerik components for Blazor do not perform the actual validation of the model. Validation is managed by the [`EditContext`](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.components.forms.editcontext). The role of the Telerik components is to call `EditContext` methods, subscribe to `EditContext` events, retrieve validation messages, and display them. If a validation scenario does not work as expected, check the behavior in a standard Blazor `<EditForm>` to verify if the issue is related to the Telerik components.

# Next Steps

* Use [TelerikValidationSummary](https://www.telerik.com/blazor-ui/documentation/components/validation/summary)
* Explore [TelerikValidationMessage](https://www.telerik.com/blazor-ui/documentation/components/validation/message)
* Try [TelerikValidationTooltip](https://www.telerik.com/blazor-ui/documentation/components/validation/tooltip)

## See Also

* [Live Demo: Validation](https://demos.telerik.com/blazor-ui/validation/overview)
* [Form Component](https://www.telerik.com/blazor-ui/documentation/components/form/overview)
