Checkbox not work with validation

3 posts, 0 answers
  1. Harry
    Harry avatar
    2 posts
    Member since:
    Nov 2015

    Posted 30 Nov 2015 Link to this post

    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. Atanas Georgiev
    Admin
    Atanas Georgiev avatar
    126 posts

    Posted 01 Dec 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Harry
    Harry avatar
    2 posts
    Member since:
    Nov 2015

    Posted 01 Dec 2015 Link to this post

    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 !

Back to Top