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

Checkbox not work with validation

2 Answers 973 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Harry
Top achievements
Rank 1
Harry asked on 30 Nov 2015, 01:14 PM

Hello ,

I`m trying to create a simple contact form with Kendo validation. Everything works fine ,but if i want to use Kendo default styles , controls have unexpected behavior. You can see demo here: http://dojo.telerik.com/OHiDo/2 , can`t click on chechbox when it has class : k-checkbox and label has class : k-checkbox-label

If remove these styles , everything works fine .. Can you help me with these issue ? I want to use Kendo styles with Kendo validation.

Thanks.

Regards,
Harry.

2 Answers, 1 is accepted

Sort by
0
Atanas Georgiev
Telerik team
answered on 01 Dec 2015, 07:29 AM
Hello Harry,

In order for the validation to work properly in your use case a placeholder for the validation message is required, as described in the following help article:

http://docs.telerik.com/kendo-ui/framework/validator/overview#customizing-the-tooltip-position

I believe this edited snippet matches the expected behavior:

http://dojo.telerik.com/@naskog/Oyire

Regards,
Atanas Georgiev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Harry
Top achievements
Rank 1
answered on 01 Dec 2015, 07:48 AM

Hello Atanas,

In other words i need to insert span with property 'data-for' based on checkbox 'name' property.
Yes , now work as expected. It`s a little confusing ,because other input types doesn`t required suck span tag, but in the other hand ,checkbox is more specific.

Thank you for your help !

Tags
Validation
Asked by
Harry
Top achievements
Rank 1
Answers by
Atanas Georgiev
Telerik team
Harry
Top achievements
Rank 1
Share this question
or