We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Value not updated properly when Min is set on DatePicker

Thread ID:

Created:

Updated:

Platform:

Replies:

149870 Dec 12,2019 10:32 AM UTC Dec 13,2019 04:39 AM UTC Blazor 1
loading
Tags: DatePicker
Mr Andrey Voronov
Asked On December 12, 2019 10:32 AM UTC

I am using v 17.3.29

Add EjsDatePicker:
<EjsDatePicker Value="@(DateTime.Today)" Min=@(new DateTime(1900, 1, 1)) Format="dd/MM/yyyy">
</EjsDatePicker>

Type value <  Min in the text box, for example 12/12/1019

Result: Value not updated properly to 1/1/1900 when you leave text box


Saranya Dhayalan [Syncfusion]
Replied On December 13, 2019 04:39 AM UTC

Hi Voronov, 
 
Thank you for contacting Syncfusion support 
 
We have checked your reported issue, cause of the issue not set the strict mode as true. StrictMode specifies the component to act as strict. So that, it allows to enter only a valid date value within a specified range or else it will reset to previous value. By default, strictMode is in false. it allows invalid or out-of-range date value with highlighted error class. Please find the below code snippet: 
 
@using Syncfusion.EJ2.Blazor.Calendars 
 
    <EjsDatePicker Value="@(DateTime.Today)" StrictMode="true" Min=@(new DateTime(1900, 1, 1)) Format="dd/MM/yyyy"> 
    </EjsDatePicker> 

 
Please find the below Documentation link: 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Saranya D 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon