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

RadDatePicker ValidationDate and EmptyMessage

3 Answers 156 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Kev Sherratt
Top achievements
Rank 1
Kev Sherratt asked on 20 Apr 2010, 10:24 AM
Aloha!

I'm currently working with the Q3 2009 version of the ASP.NET controls and seem to have hit an oddity with the RadDatePicker (and probably other) controls when setting the EmptyMessage and performing optional field validation.  I've set the EmptyMessage on the control and also have a RangeValidator applied to it; validators don't typically validate empty text and this is fine on the client validation (no error) but server-side fails as the ValidationDate is set to the EmptyMessage value, causing the RangeValidator to try and validate.

Is there a way around this, short of making code changes and performing custom validation, enabling/disabling validators etc?  Or should I just remove the EmptyMessage value?  I've read a couple of other threads here discussing always catching the (possibly invalid) data entered in ValidationDate but in this case, there is no explicit data entry.

Thanks in advance.

Kev.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 22 Apr 2010, 04:30 PM
Hello Kev,

Indeed, currently there is a problem with this scenario, which we will research and do our best to fix for the next release. The easiest workaround is to remove the EmptyMessage. For example you can use a label in front of the control. Sorry about the inconvenience.

I have updated your Telerik points for bringing the issue to our attention.

Sincerely yours,
Dimo
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.
0
Kev Sherratt
Top achievements
Rank 1
answered on 23 Apr 2010, 08:24 AM
Thanks for the response - at least I know I'm not going crazy or doing something stupid (or both!)  I've removed the EmptyMessage settings for now.  Here's looking forward to the next release :)
0
Dimo
Telerik team
answered on 23 Apr 2010, 01:40 PM
Hello Kev,

The problem has been fixed, so you can try the next RadControls internal build, once it becomes available (some time next week).

http://www.telerik.com/account/downloads/internal-builds.aspx

Greetings,
Dimo
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
Kev Sherratt
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Kev Sherratt
Top achievements
Rank 1
Share this question
or