A pair of RadTimePickers I have for selecting the beginning and end of a shift are displaying the timeview incorrectly after being enabled and having the starttime and endtime values set. They both show every slot from 12AM to 11:45PM, but starting with 12AM selecting a slot displays the value that SHOULD be seen, 8:30AM in this case, and continues for each subsequent slot in the same manner until the endtime slot, whose correct value is 5:15PM at the 8:45AM slot on the selection view. When the binding event is called a second time, the timeviews for both RTPs are correctly shown, going from 8:30AM to 5:15PM. HTML markup of the RTPs in question as follows, as well as the code-behind for the binding event.
//HTML//<telerik:RadTimePicker ID="tpStartTime" runat="server" EnableTyping="false" TimeView-Columns="4" TimeView-Interval="00:15:00" Enabled="false"></telerik:RadTimePicker><telerik:RadTimePicker ID="tpEndTime" runat="server" EnableTyping="false" TimeView-Columns="4" TimeView-Interval="00:15:00" Enabled="false"></telerik:RadTimePicker>//C#//protected void dpOriginalDate_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e) { DateTime[] shift = getShift((DateTime)dpOriginalDate.SelectedDate); tpStartTime.Enabled = tpEndTime.Enabled = true; tpStartTime.TimeView.StartTime = shift[0].TimeOfDay; tpStartTime.TimeView.EndTime = shift[1].TimeOfDay; tpEndTime.TimeView.StartTime = shift[0].AddMinutes(15).TimeOfDay; tpEndTime.TimeView.EndTime = shift[1].AddMinutes(15).TimeOfDay; }Page_Load contains Page.DataBind(); which appears to be the cause. Do I have to do without it or is there a workaround?
