Telerik UI for ASP.NET Core Validator Basic Usage
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API SERVER-SIDE APIThe Validator component is part of Telerik UI for ASP.NET Core, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Description
The Telerik UI for ASP.NET Core Validator supports a wide range of validation rules for different types of data input, and also enables you to set custom validation rules. The Validator control is useful in any situation that requires user input.
This demo showcases a Form component which is a common scenario that requires validation. The Validator rules used here are implemented for required fields and specific formats such as email and phone number. The demo also gives an example of a custom rule applied to the start time input.
This Validator example is part of a unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik UI for ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.
Functionality and Features
- Forms validation—The Validator enables you to use the HTML5 form validation attributes.
- Validation rules—You can implement custom validation rules and custom messages.
- Tooltip—The Validator allows you to manage the rendering behavior of its tooltips.