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

restrict user input to min/max values doesn`t work for initial empty value

2 Answers 130 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Oscar
Top achievements
Rank 1
Oscar asked on 15 Jul 2017, 06:54 PM

Hi kendo team,

I have an optional date input. When user types a date greater than maximum value, change event does not trigger.

This is the sample you can reproduce the issue.

Kind regards,

Oscar.

 

2 Answers, 1 is accepted

Sort by
0
Oscar
Top achievements
Rank 1
answered on 15 Jul 2017, 07:12 PM

Sorry, there is a mistake in the link.

http://dojo.telerik.com/IGeKe

0
Georgi
Telerik team
answered on 18 Jul 2017, 03:01 PM
Hi Oscar,

The behavior you are observing is expected since the change event is not triggered if validation is not passed. As a workaround you can execute your logic when the blur event of the input is fired instead of the change event of the Kendo DatePicker.

I modified the sample from previous message to use aforementioned approach:



Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Oscar
Top achievements
Rank 1
Answers by
Oscar
Top achievements
Rank 1
Georgi
Telerik team
Share this question
or