Can you please advise me on how I can achieve this.
On the week View if I have many resources selected in a timeslot and gets real crowded. So I would like to limit to number of appointment appearing per day. I know the month view has the property but not the week view,
Please see attached screen shot for clarification.
Thank you for your help.
Regards,
Mafed
9 Answers, 1 is accepted
RadScheduler does not support AppointmentsPerDay functionality in WeekView. One possible way to avoid this "crowded" behavior would be to set appointment visibility to false if there are more existing appointments in same range. That might be achieved using server-side event OnAppointmentDataBound:
//aspx file
<
telerik:RadScheduler
runat
=
"server"
ID
=
"RadScheduler1"
SelectedView
=
"WeekView"
OnAppointmentDataBound
=
"RadScheduler1_AppointmentDataBound"
.........>
......
</
telerik:RadScheduler
>
//code behind
protected
void
RadScheduler1_AppointmentDataBound(
object
sender, SchedulerEventArgs e)
{
RadScheduler currentScheduler = sender
as
RadScheduler;
if
(RadScheduler1.Appointments.GetAppointmentsInRange(e.Appointment.Start, e.Appointment.End).Count > 2 && currentScheduler.SelectedView == SchedulerViewType.WeekView)
{
e.Appointment.Visible =
false
;
}
}
I hope this was helpful.
Kind regards,
Boyan Dimitrov
the Telerik team

I would like to clarify that "Show More" functionality is only available out of the box for the month view. In the week view all appointments are visible. In case of having more appointment for same period each appointment width will be reduced in order all appointment to fit the time slot.
In the attached screenshot from the first post in this forum thread the "Show more" is custom solution implemented by the client. I assume that this is a special appointment with subject "Show more".
As your questions for adding controls or element to the time slot you can use the the controls collection of the e.TimeSlot.Controls in the RadScheduler TimeSlotCreated event handler for example. On the client-side the time slot element is a td element and you can simply add a element to the that time slot DOM element.
Regards,
Boyan Dimitrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

I have multiple appointments in same day but at different times. I have created the appointments for a day, same day appointments is visible in month view but in weak view is not populating the appointments. Please help me in this. If there is less appointments in day view able to see at week view.
Could you please elaborate a bit more on your scenario? I am afraid that I do not understand the exact problem in the screenshots.
Regards,
Boyan Dimitrov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

I have created 30 appointments in day and switch over to month view, no appointment visible and again when we come back at day view, the day disappears. Please help us.
You can control how many appointments are visible in MonthView by using the VisibleAppointmentsPerDay property as it is shown in this online demo.
Regards,
Plamen
Telerik
See What's Next in App Development. Register for TelerikNEXT.

Hi Boyan,
I have MVC application in which I have used Telerik ASP.Net Scheduler. So, in this control, I create more than 28 appointments for a specific day, but after creating, these are not populating in Day View and Week View. But same appointments are populating into Month View with "more.." link.
You ca refer to this KB article where a similar behavior is described.
Regards,
Plamen
Telerik
See What's Next in App Development. Register for TelerikNEXT.