Numeric Textbox / Validation

Blazor Numeric TextBox - Form Validation

Loading Syncfusion Blazor Server Demos…

This example demonstrates form validation using Data Annotation attributes. Type a number in the input element. If the input value is a valid number, the input will be ready to submit. Otherwise, an error message will be displayed until you enter a valid number.

The form enables validation with data annotation attributes when the submit button is clicked externally. All validation rules are enforced by the DataAnnotationsValidator component.

Age Field Validation Rules:

Field Rule
Required The field must have a valid number.
Range The field must have a number value between 1 and 80.
Transform your Blazor web apps today with Syncfusion® Blazor components
145+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE