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

Datepicker issue

3 Answers 403 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Andrés
Top achievements
Rank 1
Andrés asked on 24 Jan 2012, 05:42 AM
Hi, I think I found a small problem with the validator and the date picker and thought I'd give you the heads up.
It seems like when you add a required (although I think any rule would be the same) attribute to a datepicker, the validation message overlaps with the calendar icon of the datepicker.

Cheers,
Andrés

3 Answers, 1 is accepted

Sort by
0
Manoj Kapoor
Top achievements
Rank 2
answered on 09 Feb 2012, 12:02 PM
Rendering the span for validation control within a Div shall fix the issue for you.

<input id="dtDOB" type="Date" name="dtDOB" required="true" validationMessage="Select a valid Date of birth" /><div>
</div><span class="k-invalid-msg" data-for="dtDOB"></span>

The above code works fine for me.

Regards,
Manoj
0
Chris
Top achievements
Rank 1
answered on 25 Jun 2014, 03:52 PM
Hi,

I'm still having this issue even with the span. Oddly enough it works with the Total Due input which is a kendoNumbericTextBox but not with kendoDatePicker. Please see attached images and let me know what may have went wrong. Thanks!
0
Alexander Popov
Telerik team
answered on 30 Jun 2014, 01:25 PM
Hello Chris,

This happens because there are two Validators, each initialized from the input element used for initializing the DatePicker. I would recommend using a single Validator widget, initialized from an element in which the desired DatePickers reside, as shown in this example.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Validation
Asked by
Andrés
Top achievements
Rank 1
Answers by
Manoj Kapoor
Top achievements
Rank 2
Chris
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or