3 Answers, 1 is accepted
0
Hello,
Unfortunately, this cannot be achieved with the preview refresh version. For the release version we will introduce a Time property as part of the SchedulerFormCreatingEventArgs, so you will be able to use code such as this:
As a note, the times returned by RadScheduler are always in UTC.
All the best,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Unfortunately, this cannot be achieved with the preview refresh version. For the release version we will introduce a Time property as part of the SchedulerFormCreatingEventArgs, so you will be able to use code such as this:
private void RadScheduler1_FormCreating(object sender, SchedulerFormCreatingEventArgs e) |
{ |
if (e.Mode == FormMode.Insert) |
{ |
DateTime date = e.Time; |
} |
} |
As a note, the times returned by RadScheduler are always in UTC.
All the best,
Tsvetomir Tsonev
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Kevin
Top achievements
Rank 1
answered on 02 Nov 2012, 04:51 PM
Could you please let me know what release version that allows you to use the code behind such as the example you provide? I'm trying to find a way to get the time from the time slot a user click. I'm using Q3 2011.
0
Hello Kevin,
All the best,
Plamen
the Telerik team
You can get the Start and the end of the TimeSlot as in the code below:
protected
void
RadScheduler1_FormCreating(
object
sender, SchedulerFormCreatingEventArgs e)
{
DateTime start = e.Appointment.Start;
DateTime end=e.Appointment.Start.AddMinutes(((RadScheduler)sender).MinutesPerRow);
Response.Write(
"Start:"
+start+
"<br/>"
+
"End"
+end);
}
Plamen
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.