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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set a minimum date of today, while still allowing a date in the past to show

Thread ID:

Created:

Updated:

Platform:

Replies:

121130 Nov 12,2015 06:07 PM UTC Nov 13,2015 10:53 AM UTC WinRT 2
loading
Tags: SfDatePicker
Cameron Flores
Asked On November 12, 2015 06:07 PM UTC

I'm trying to use an SfDatePicker control, and I'm running into a problem.  I have a date that I want to display in my application, and sometimes that date will be in the past.  If the user clicks on the date picker control to change it, I want to force the user to only be able to select a new date that is either today or in the future.  If they click away from the control without saving it, it should keep the old (past) date.  The problem I run into currently is that when I set the MinDate property to today, it also changes the current value being displayed to today (if it was previously in the past).  Is there a way to do this?  Thanks.

Cameron Flores
Replied On November 12, 2015 08:11 PM UTC

Nevermind - I switched to a calendar control, which works better for what I'm trying to do.

Victory Jessie Selvam D [Syncfusion]
Replied On November 13, 2015 10:53 AM UTC

Hi Cameron,

We are happy to hear that you have resolved it.

We would like to inform you that, it is the default behaviour in SfDatePicker control. It will reset the value to MinDate if the selected date doesn't fall in between range values.

Please let us know if you have any query.

Regards,
Jessie

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.

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

;