When I pass a value of null to an igDatePicker the minDate setting is correctly reflected in all dates before being disabled.
However when you select the first possible date you still get the validation message "entry was less than the minimum value of ... and was set to the minimum value".
I know I can probably get around this by setting the time to 0:00 but this is confusing behavior nonetheless.
Here is a demo: http://jsfiddle.net/a2sh018c/
Thank you for contacting the Infragistics support!
The behavior that you observe is caused because of the specifics of the Date object and is actually caused by a jQuery UI date picker’s option (minDate).
I am providing an example of how you can achieve your scenario. You just need to set the minDate to – 0. Please, see the attached JSFiddle - jsfiddle.net/.../
If you have any additional questions related to this scenario or in case this approach is not suitable for you – please let us know!
Thank you once more for using Ignite UI!
Best regards,Alexander Marinov
Thanks for your reply but his workaround is only for when the minDate is today. In practice we need to have it 5 days from now.(Edit: I found that the 0 can be replaced with 5)Moreover, while trying to implement this it seems like the MVC helper does not support setting minDate to an integer.
Thank you for your response!
In fact, the behavior that you observe is caused by the 'DisplayTimeOffset' option that is set by default when using MVC. What you can do to meet your scenario is to set it to null. So, your date picker would look like this:
.DatePickerOptions(options => options.MinDate("5"))
Please, let me know if you have any troubles with this approach!