Disable Telerik Date Input Validation

0 Answers 52 Views
DateInput
Harsh
Top achievements
Rank 1
Harsh asked on 26 Sep 2024, 12:08 PM

Hello Telerik Community,

I'm currently working on a Blazor application using the Telerik UI components, and I've run into an issue regarding the default validation behavior of the DateInput component. By default, the DateInput performs validation that sometimes interferes with my application's requirements.

Problem Description

When using the DateInput component, I noticed that it automatically validates the entered date and displays validation messages if the input does not conform to expected formats or ranges. However, I need to customize this behavior and allow users to enter dates without triggering these default validation checks.

Steps Taken

I've explored various approaches, including:

  1. Custom Validation Attributes: Attempted to apply custom validation attributes to override the default behavior.
  2. Disabling Validation: Looked for properties or methods to disable validation directly within the DateInput component.
  3. Event Handling: Tried handling the OnBlur and OnChange events to manage validation manually.

Questions

  1. Is there a built-in way to disable the default validation for the DateInput component?
  2. If so, what properties or methods should I utilize to achieve this?
  3. Are there best practices for implementing custom validation for the DateInput that you would recommend?

No answers yet. Maybe you can help?

Tags
DateInput
Asked by
Harsh
Top achievements
Rank 1
Share this question
or