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

No validation on lost focus when input turned into combobox

1 Answer 260 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 13 Feb 2012, 03:08 PM
Hi,

In  normal input boxes I have validation on lost focus and on form submit too.
However if I turn the input into combobox there is validation only on form submit...

There is a way to change it?

Regards,
Peter

1 Answer, 1 is accepted

Sort by
0
Accepted
Rosen
Telerik team
answered on 14 Feb 2012, 02:15 PM
Hello Peter,

The behavior you have described is caused by the fact that our ComboBox widget has two input elements. The original one, to which Kendo Validator  is bound, is  hidden therefore, no blur events are triggered and input is not re-validated. In order to workaround this limitation you may use the ComboBox Change event to trigger form validation manually, as shown in this basic jsFiddle:

Regards,
Rosen
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Validation
Asked by
Peter
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or