*URGENT* RadTimePicker

2 posts, 0 answers
  1. Luffy
    Luffy avatar
    28 posts
    Member since:
    Jun 2011

    Posted 31 Jul 2011 Link to this post

    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

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 01 Aug 2011 Link to this post

    Hello Sherman,

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

Back to Top