If the Datepicker's binded value is a DateOnly type, the Min and Max should follow that type.
Hi Andrew,
Let me confirm that I understand your question correctly:
Regards,
Dimo
Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Question, and I'm not sure if this leads to the same answer or not, but:
If my bind-Value is a DateOnly, and I set my Max= to a DateTime as Telerik expects, no error message occurs, but No Validation occurs either.
Would supporting Min/Max validation on a bound DateOnly field be a code-breaking changing also, if I'm setting the Min/Max to a DateTime value??
Hello Ahmad,
Indeed, we considered identical Value, Min and Max parameter types when we added support for DateOnly. I agree with you that it makes complete sense. However, our research showed that this will require a breaking change and moreover, introduce too much complexity in our source code, which is not justified.
That's why we decided to leave the Min and Max type DateTime. By the way, some of our competitors follow the same approach.
I hope it will be easy for your app logic to accommodate this requirement.
Regards,
Dimo
Progress Telerik