3 Answers, 1 is accepted
0
Hi vincent,
You can parse the appointment's recurrence and get the last element of the Occurrences collection:
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
You can parse the appointment's recurrence and get the last element of the Occurrences collection:
| protected void RadScheduler1_AppointmentDataBound(object sender, Telerik.Web.UI.SchedulerEventArgs e) |
| { |
| if (e.Appointment.RecurrenceRule != String.Empty) |
| { |
| RecurrenceRule rrule; |
| RecurrenceRule.TryParse(e.Appointment.RecurrenceRule, out rrule); |
| Response.Write("Last occurrence starts at: " + rrule.Occurrences.Last().ToString()+"<br/>"); |
| Response.Write("Last occurrence ends at: " + rrule.Occurrences.Last().Add(e.Appointment.Duration).ToString() + "<br/>"); |
| } |
| } |
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
SKS
Top achievements
Rank 1
answered on 23 Oct 2009, 08:06 PM
Can anyone from Telerik Team tell me if there is a nice and neat way of displaying the duratiion of appointments at the botom for each day and also for the selected week
thanks
SKS
thanks
SKS
0
Hello SKS,
You can handle AppointmentCreated which will occur for all appointments in the visible range of RadScheduler. For example:
Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
You can handle AppointmentCreated which will occur for all appointments in the visible range of RadScheduler. For example:
protected void RadScheduler1_AppointmentCreated(object sender, AppointmentCreatedEventArgs e) { Response.Write(e.Appointment.Duration.TotalHours.ToString()); }Best wishes,
Peter
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.