Setting the location of a custom validation message.

3 posts, 0 answers
  1. Todd
    Todd avatar
    8 posts
    Member since:
    Dec 2012

    Posted 09 Oct 2013 Link to this post

    I have created an example here. jsfiddle If you type 'z' or any invalid date and click the button the message covers the images used in the control. I tried to create a span tag to display the message but that did not work. Please help.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2565 posts

    Posted 09 Oct 2013 Link to this post

    Hello Todd,

    The span for validation is linked using the name attribute of the input. In your case if you change:

      <span class="k-invalid-msg" data-for="assignedTestDateTime" >Invalid Date</span>
     
    to
     
     
     <span class="k-invalid-msg" data-for="AssignedTestDateTime" >Invalid Date</span>

    seems to be working.
     
    Regards,
    Kiril Nikolov
    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. Todd
    Todd avatar
    8 posts
    Member since:
    Dec 2012

    Posted 09 Oct 2013 Link to this post

    Ah... I was using the id. Thanks a bunch! I appreciate it.
Back to Top