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

[Solved] Input loses t-state-error class after focus loss

1 Answer 51 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dino
Top achievements
Rank 1
Dino asked on 22 Dec 2011, 06:06 PM
Hello, 

I noticed an issue using the following steps:

1) Edit the date manually to an invalid value (i.e. set 13 as the month)
2) make the input lose focus. The input correctly gains the class t-state-error.
3) Give focus back to the input but do not change the value. Leave it as an invalid value.
4) Remove focus from the input.

The input no longer has the class t-state-error and everything seems fine.

Shouldn't the validation be reapplied to the input when focus is lost so that it keeps the t-state-error class?

Also, is there a method we could call on the datetime picker to see if it is in a valid state?

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 23 Dec 2011, 01:12 AM
Hi,

 
This is a known issue, which is already addressed. The fix will be available in the next internal build of Telerik Extensions for ASP.NET MVC. If the "t-error-state" is applied then the entered value is not valid. Also the component value is "null". 

Regards,
Georgi Krustev
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Date/Time Pickers
Asked by
Dino
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or