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. Image for the cookie policy date

Value not updated properly when Min is set on DatePicker

I am using v 17.3.29

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

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

1 Reply

SD Saranya Dhayalan Syncfusion Team December 12, 2019 11:39 PM

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"> 

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

Live Chat Icon For mobile
Up arrow icon