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

Setting the location of a custom validation message.

2 Answers 48 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Todd
Top achievements
Rank 1
Todd asked on 09 Oct 2013, 12:52 PM
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 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 09 Oct 2013, 02:20 PM
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!
0
Todd
Top achievements
Rank 1
answered on 09 Oct 2013, 02:39 PM
Ah... I was using the id. Thanks a bunch! I appreciate it.
Tags
Validation
Asked by
Todd
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Todd
Top achievements
Rank 1
Share this question
or