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

checkbox validation bug

1 Answer 113 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 15 Nov 2012, 04:41 PM
Just noticed a small bug in validating a checkbox. 

To replicate in demo:
1. tab to checkbox
2. click checkbox with mouse

Result: A checked box with error message (as if it wasn't checked).

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 16 Nov 2012, 09:00 AM
Hi Greg,

The behavior you are observing is due to the fact that validation is triggered when element looses focus. In the described scenario, as the checkbox is focused with the keyboard, the blur is triggered before the click, executing the validation. At this point the checkbox state is not valid, thus the validation message is displayed.

However, we have enhanced the validator behavior to trigger validation on checkbox click. This improvement will be included in the next release of KendoUI.

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
Greg
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or