This is a migrated thread and some comments may be shown as answers.

How to provided a min/max date validation message?

1 Answer 97 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 14 Sep 2010, 09:08 PM
Currently our date pickers have a min/max date set.  When the user enters a bad date they are greeted with the red box and the yellow warning symbol within the data picker.  This is just like this demo site, when you enter 1/1/0050
http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/validation/defaultcs.aspx

Here is the deal.  The users are asking what is wrong wtih that data input.
Is there a way to provided an aditional validation message to the user that 'the date must be between [1/1/1000] and [1/1/3000]'?

Thanks for the help.



1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 15 Sep 2010, 12:38 PM
Hello Tim,

In order to display a more user friendly messgae, you can either use a RangeValidator, or handle the OnError client-side event of the RadDateInput.

Regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Calendar
Asked by
Jeff
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or