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

*URGENT* RadTimePicker

1 Answer 50 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Luffy
Top achievements
Rank 1
Luffy asked on 31 Jul 2011, 02:17 PM
Hi guys, I would need help for RadTimepicker.

I have 2 DatePickers to choose Start Date & End Date , And also 2 Time pickers to choose the Start Time & End Time.
However, I would want to validate something like. (Start Date is 31 July 2011 & End Date is 1 August 2011, Start Time is 10:00 AM & End Time is 08:00AM) which i couldnt figure out how to do it.(It's a different day so the validator shouldnt prompt me saying invalid due to the end time is earlier than start time). The most i can do is just use Compare Validate to compare the time on the same day which is not what i want. Could someone please help me on this? Thanks

Regards.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 01 Aug 2011, 05:42 AM
Hello Sherman,

Try the following scenario to validate DatePickers using CompareValidator which worked as expected on my end.
aspx:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<telerik:RadDatePicker ID="Startdate" runat="server">
</telerik:RadDatePicker>
<telerik:RadDatePicker ID="Enddate" runat="server">
</telerik:RadDatePicker>
 <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Startdate"
     ControlToValidate="Enddate" Operator="GreaterThanEqual" ErrorMessage="End Date Must be Greater than Start Date">
 </asp:CompareValidator>

Thanks,
Shinu.
Tags
Calendar
Asked by
Luffy
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or