Hi there,
I have an ASP.net wizard control, with a RadDatePicker on one of the steps. I have added a RequiredFieldValidator as per this documentation.
Unfortunately, the validator isn't firing when I enter an invalid date, and I can move to the next step in the wizard. If I move to the next step, then return to the previous step and enter an invalid date, it then fires.
My code for the RadDatePicker and Validator is as below:
Any ideas would be greatly appreciated :)
I have an ASP.net wizard control, with a RadDatePicker on one of the steps. I have added a RequiredFieldValidator as per this documentation.
Unfortunately, the validator isn't firing when I enter an invalid date, and I can move to the next step in the wizard. If I move to the next step, then return to the previous step and enter an invalid date, it then fires.
My code for the RadDatePicker and Validator is as below:
<telerik:RadDatePicker ID="rdpMAEDROut" Runat="server" Culture="en-US"> <Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x" daynameformat="Short" showrowheaders="False"></Calendar> <DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton> <DateInput DisplayDateFormat="dd/MM/yyyy" DateFormat="dd/MM/yyyy" emptymessage="dd/mm/yyyy" CssClass="RDPInvalid"></DateInput></telerik:RadDatePicker><asp:RequiredFieldValidator CssClass="RequiredFieldValidator" ID="rfvMAEDROut" runat="server" ControlToValidate="rdpMAEDROut" ErrorMessage="You must enter a valid value in this field." ></asp:RequiredFieldValidator>Any ideas would be greatly appreciated :)