When a RequiredFieldValidator is applied to a RadDatePicker control the validator's Text is displayed when the user enters the field, does not change anything and leaves the field. This should not be happening since the text has not changed from the default. How can I workaround this?
Here's an example:
Here's an example:
| <telerik:RadDatePicker ID="RadDatePicker1" runat="server"> |
| </telerik:RadDatePicker> |
| <asp:RequiredFieldValidator ID="DateReq" runat="server" ControlToValidate="RadDatePicker1" Text="*" ErrorMessage="Date is a required field" /> |
| <br /> |
| <telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" ShowSpinButtons="true"> |
| </telerik:RadNumericTextBox> |
| <asp:RequiredFieldValidator ID="NumberReq" runat="server" ControlToValidate="RadNumericTextBox1" Text="*" ErrorMessage="Number is a required field" /> |
| <br /> |
| <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> |
| <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" Text="*" ErrorMessage="Text is a required field" /> |
| <br /> |
| <asp:Button ID="submit" runat="server" CausesValidation="true" Text="Submit" /> |
| <asp:ValidationSummary ID="ValidationSummary1" runat="server" DisplayMode="List" ShowSummary="true" /> |