I am using RadControls for ASP.NET AJAX, v.2012.2.912.40
I am trying to set the Time on my RadTimePicker using the SelectedTime member in the C# code-behind, but I get the compiler error:
'Telerik.Web.UI.RadTimePicker' does not contain a definition for 'SelectedTime'
I am able to set it using the SelectedDate property, so my code works, but the on-line documentation states that the SelectedTime member should work. http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radtimepicker_selectedtime.html
Mostly I'm just curious why the compiler doesn't recognize the SelectedTime member.
Here's the ascx code fragment:
Here's the C# code behind:
I am trying to set the Time on my RadTimePicker using the SelectedTime member in the C# code-behind, but I get the compiler error:
'Telerik.Web.UI.RadTimePicker' does not contain a definition for 'SelectedTime'
I am able to set it using the SelectedDate property, so my code works, but the on-line documentation states that the SelectedTime member should work. http://www.telerik.com/help/aspnet-ajax/p_telerik_web_ui_radtimepicker_selectedtime.html
Mostly I'm just curious why the compiler doesn't recognize the SelectedTime member.
Here's the ascx code fragment:
<telerik:RadDateInput ID="DateIN" runat="server"> </telerik:RadDateInput><telerik:RadTimePicker ID="TimeIN" runat="server"> </telerik:RadTimePicker>Here's the C# code behind:
DateTime? dateIN = DateTime.Now;TimeSpan? timeIN = dateIN.Value.TimeOfDay;DateIN.SelectedDate = dateIN;// this worksTimeIN.SelectedDate = myData.DateIN.Value.Date.AddMinutes(myData.TimeIN.Value.Minutes);// this doesn't compile & it shouldTimeIN.SelectedTime = timeIN;