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

RadDateInput validation

3 Answers 270 Views
Input
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 07 Apr 2008, 05:44 PM
I am using the RadDateInput control.  If I key in a date such as, 2/33/2008, the date is highlighted in red.  How can I also display an error message?  I would like to use something like the ValidationSummary and RequiredFieldControl controls in ASP.Net.  Is there something similar in telerik or should I just go on and use the ASP.Net validation controls?

Thanks,
Bob

3 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 08 Apr 2008, 05:39 AM
Hi Bob,

You can hook the OnError client event, check if this is a parsing error and perform some custom actions there. Find a demo demonstrating that below:

http://www.telerik.com/demos/aspnet/prometheus-futures/Input/Examples/RadDateInput/HandleErrorEvent/DefaultCS.aspx

You can also assign client validation controls to the RadInput components as shown here:

http://www.telerik.com/demos/aspnet/prometheus-futures/Input/Examples/Common/Validation/DefaultCS.aspx

Greetings,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jan
Top achievements
Rank 1
answered on 25 Apr 2016, 04:28 PM
Error 404.
0
Viktor Tachev
Telerik team
answered on 27 Apr 2016, 01:05 PM
Hi Jan,

You can find an online demo illustrating the client-side events of RadDateInput below.


Additional information regarding the OnError event is available in this article.


If you would like additional information on the default validation used by the DateInput you would find the following article interesting.




Regards,
Viktor Tachev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Input
Asked by
Bob
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Jan
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or