When I use the JQueryUI datepicker widget on a date field that was created with the following expressive annotation the client side validation is not triggered until I click in some other field, return to the date field and then exit the date field.
[AssertThat("ResolutionDate<=Today()", ErrorMessage = "Resolution date can not be in the future.")]
[AssertThat("ResolutionDate>=DateReceived", ErrorMessage = "Resolution date must be after the date received.")]
[DataType(DataType.Date)]
public DateTime? ResolutionDate { get; set; }
I'm assuming some sort of event is missed. Any ideas or fixes?