This is a migrated thread and some comments may be shown as answers.

All day events

1 Answer 83 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Hans Santens
Top achievements
Rank 1
Hans Santens asked on 04 Jan 2011, 11:21 PM
Hi,

I have a radscheduler which shows the occupation of meeting rooms. When an event is a "all day event" it is displayed (in the dayview) at the top of the meeting room (resource) with the note "all day". 

Is there a way to display these "all day events" really as an all day occupation? It would be more clear to our users that the meeting rooms is not available during that day?

Thank you in advance

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 06 Jan 2011, 12:46 PM
Hi Hans,

You can trick RadScheduler to display an all-day appointment as a regular one by subtracting a second from its end time. You can handle AppointmentDataBound for this purpose.

protected void RadScheduler1_AppointmentDataBound(object sender, SchedulerEventArgs e)
   {
       e.Appointment.End = e.Appointment.End.AddSeconds(-1);
   }


Kind regards,
Peter
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Scheduler
Asked by
Hans Santens
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or