Hi,
I am using raddate picker and raddateinput for getting a input date. I need to validate the input date format as mm/dd/yy. I am using OnError function to validate. but it not working properly. is there any alternate way to validate the formate of the datepicker. i am trying to get the text in that dateinput. but i couldnot get if the format is wrong
<telerik:RadDatePicker ID="textBoxDOB" Skin="Web20" Culture="en-US" Width="100px"
MinDate="01/01/1900" runat="server">
<Calendar ID="CalendarDOB" runat="server" ShowOtherMonthsDays="false" ShowRowHeaders="false"
Skin="WebBlue" BorderWidth="1">
</Calendar>
<DateInput ClientEvents-OnError="OnError" runat="server" ID="raddateDOB" Culture="en-US"
MaxLength="10" ReadOnly="false" MinDate="01/01/1900" >
</DateInput>
<DatePopupButton HoverImageUrl="../Images/calendar.png" ImageUrl="../Images/calendar.png" />
</telerik:RadDatePicker>
function OnError(sender, args) {
alert('Invalid date');
}
Thanks,
Jeevitha
I am using raddate picker and raddateinput for getting a input date. I need to validate the input date format as mm/dd/yy. I am using OnError function to validate. but it not working properly. is there any alternate way to validate the formate of the datepicker. i am trying to get the text in that dateinput. but i couldnot get if the format is wrong
<telerik:RadDatePicker ID="textBoxDOB" Skin="Web20" Culture="en-US" Width="100px"
MinDate="01/01/1900" runat="server">
<Calendar ID="CalendarDOB" runat="server" ShowOtherMonthsDays="false" ShowRowHeaders="false"
Skin="WebBlue" BorderWidth="1">
</Calendar>
<DateInput ClientEvents-OnError="OnError" runat="server" ID="raddateDOB" Culture="en-US"
MaxLength="10" ReadOnly="false" MinDate="01/01/1900" >
</DateInput>
<DatePopupButton HoverImageUrl="../Images/calendar.png" ImageUrl="../Images/calendar.png" />
</telerik:RadDatePicker>
function OnError(sender, args) {
alert('Invalid date');
}
Thanks,
Jeevitha