Is there a property to force a 12 hour clock for the RadScheduler... when I select the times for the event from the Start Time and End Time dropdowns it displays 24 hour clock times. I'd like this to be 12 hour clock only.
2 Answers, 1 is accepted
0
Plamen
Telerik team
answered on 18 Apr 2012, 10:52 AM
Hi Kevon,
You can set the time format in the FormCreated event of RadScheduler as in the code:
if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))
{
RadTimePicker startTime = e.Container.FindControl("StartTime") as RadTimePicker;
startTime.TimeView.TimeFormat = "hh:mm tt";
startTime.TimeView.DataList.DataSource = null;
startTime.DataBind();
RadTimePicker endTime = e.Container.FindControl("EndTime") as RadTimePicker;
endTime.TimeView.TimeFormat = "hh:mm tt";
endTime.TimeView.DataList.DataSource = null;
endTime.DataBind();
}
}
Hope this will be helpful.
All the best,
Plamen Zdravkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.