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

RadDate input weird behaviour

3 Answers 75 Views
Input
This is a migrated thread and some comments may be shown as answers.
vinay
Top achievements
Rank 1
vinay asked on 26 Jun 2008, 05:43 PM
Hi,

I am using radDateInput for the date control, but when I enter 00002008 and tab out its displaying 12/31/2006 and if I enter 0000 and tab out its displaying 06/26/2000. Why is it showing such a weird behaviour, am I doing something worng?

Thanks
Vinay

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 27 Jun 2008, 10:23 AM
Hi Vinay,

The DateInput controls tries to parse every input string according to the following rules:

RadDateInput - Parsing Dates

As you can see, sometimes the control can be "tricked" into parsing invalid strings into date values, which are not expected. We researched and it seems that a problem occurs when the input string has two zeros at the beginning. We will try to fix that for a future release.

In the meantime, you can use some client-side validation to prevent users from inputting values such as "0000".

Let us know if you need more information.


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Jacques
Top achievements
Rank 1
answered on 19 Feb 2009, 08:44 PM
This problem is still occurring in the current release 

2008.3.1314

Can we expect the fix in the next release?

thanks

0
Dimo
Telerik team
answered on 20 Feb 2009, 02:14 PM
Hello Jacques,

We are currently working on this behavior, however, we cannot commit that it will be ready for the next release. We need some time to research and test, so that some breaking changes are not introduced, or at least not many. Thank you for your patience.

Best wishes,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Input
Asked by
vinay
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Jacques
Top achievements
Rank 1
Share this question
or