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

DatePicker's Built-in Validation

1 Answer 58 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Leonard Jones
Top achievements
Rank 1
Leonard Jones asked on 12 Jun 2011, 05:34 PM
I really like this feature of the DatePicker but I have a gripe.

I am working with British (en-GB) date format - day/month/year. If I enter the following string into the date input box, '12/32/2011' then this is seen as an invalid date string. If however I enter the following erroneous date string '12/13/2011'(meaning the twelth day of the thireteenth month of the year), the built-in validation mechanism seems to treat it as if it had been entered in en-US format (meaning the thirteenth day of the twelth month) and redisplays it as '13/12/2011'. It does not see this date string as invalid.

So, to catch this type of input error I have to validate the input string using the DateInput's client side 'OnValueChanged' event.

It would be so much nicer if Telerik could provide a user option which allowed me to select either the current 'corrective' behaviour or a 'strict' behaviour that trapped any inconsistencies in a date string.

Rgds

Len Jones

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 15 Jun 2011, 03:53 PM
Hi Leonard,

Unfortunately this behaviour could not be avoid in the RadDatePicker control. We are aware of it but its fixing requires some great reworking of the code on part of our developers which is not possible at this stage.

Excuse us for any inconvenience this behaviour may lead


Greetings,
Maria Ilieva
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Calendar
Asked by
Leonard Jones
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or