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

Change Event bug?

6 Answers 626 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.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 24 Jan 2013, 04:24 PM
Demo page: http://demos.kendoui.com/web/datepicker/events.html

Non-date values don't trigger change events...so I can't remove\fix non-date values (as the control doesn't seem to enforce that itself...or am I missing a property to do that?)

6 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 28 Jan 2013, 04:42 PM
Hello Steve,

 
The described behavior is expected. The DatePicker widget raises when its value changes. When an invalid date is entered then the widget value is null. If another invalid string is typed its value is still null and change event will not be raised. If you need to listen to input change then I will suggest you wire it instead of the widget's one. 

All the best,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 28 Jan 2013, 05:03 PM
Well if yer gonna do that, then please at least make it so it ONLY accepts dates, like wipe the text if some non-date value is in there.

What you're doing to me is making me need to write my own blur\change for every date picker I use...ever...in anything
0
Michael
Top achievements
Rank 1
answered on 30 Apr 2013, 05:50 PM
I have to agree...seems like a no-brainer to me.  Why in the world would I want someone to be able to type in "blah" for a date field?  So now, I have to manually handle this myself...
0
Justin
Top achievements
Rank 1
answered on 21 Nov 2013, 08:34 PM
I agree.  This is horrible behavior. It's a datepicker field.  Why would I want to ignore 'blah'?
0
Georgi Krustev
Telerik team
answered on 22 Nov 2013, 12:15 PM
Hello guys,

I will suggest you open a discussion in our uservoice channel. Thus we will be able to gather community feedback about this implementation.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 22 Nov 2013, 02:29 PM
Vote:
http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/5044563-date-time-picker-non-date-values-should-trigger-c

...worst thing on uservoice to spend votes on, it should be considered a bug...date\time that accepts non-datetime, wtf

This is annoying
Tags
Date/Time Pickers
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Alexander Valchev
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Michael
Top achievements
Rank 1
Justin
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or