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

[Solved] Calendar Validation Error Message

0 Answers 14 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Andrew asked on 23 May 2011, 05:15 AM

Hi, when we use unobtrusive validation with the Calendar Control, we are finding that error messages do not get displayed for invalid dates. Tracing it through, we have found that the class applied appears to be invalid.

It starts fine as: "field-validation-valid" but on a key press, it gets changed to: "field-valiion-valid" which then seems to not match the label replacement.

Here is an example of what we are seeing:

<div class="editor-field">
 <div class="t-widget t-datepicker" id="DateDue_wrapper">
 <div class="t-picker-wrap">
 <input class="t-input t-state-error valid" data-val="true" data-val-required="The When do I need to do this by? field is required." id="DateDue" name="DateDue" value="23-May-2011" autocomplete="off">
 <span class="t-select">
 <span class="t-icon t-icon-calendar" title="Open the calendar">Open the calendar</span>
 </span>
 </div>
 </div
 <span class="field-valiion-valid" data-valmsg-for="DateDue" data-valmsg-replace="true"></span>
</div>

Notice the span class in the second last line??

Have you seen this before?

We are using 2011.1.315.340 as the Upgrader does not work as outlined in a previous post.

Thanks in advance,

Andy.

Tags
Calendar
Asked by
Andrew
Top achievements
Rank 1
Share this question
or