New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Displaying Appointment Count in RadScheduler MonthView
Updated on Aug 11, 2025
Environment
| Product | Scheduler for UI for ASP.NET AJAX |
| Version | All |
Description
I want to show the count of appointments for each day in the MonthView of the RadScheduler control for UI for ASP.NET AJAX. My stored procedure also returns the daily count, so I need guidance for either using the built-in appointment count or mapping my stored procedure results.
This knowledge base article also answers the following questions:
- How to customize RadScheduler MonthView cells?
- How to display appointment counts using RadScheduler TimeSlotCreated?
Solution
Use the TimeSlotCreated server-side event to customize each day cell in the MonthView of the RadScheduler. You can use e.TimeSlot.Appointments.Count to display the count of built-in appointments or map the results of your stored procedure to show the daily count.
Example Using Built-In Appointment Count
C#
protected void RadScheduler1_TimeSlotCreated(object sender, TimeSlotCreatedEventArgs e)
{
if (RadScheduler1.SelectedView == SchedulerViewType.MonthView)
{
int count = e.TimeSlot.Appointments.Count;
if (count > 0)
{
RadLabel lbl = new RadLabel()
{
Text = $"<div>{count}</div>",
CssClass = "daily-count-label",
};
e.TimeSlot.Control.Controls.Add(lbl); // Add label to the day cell
}
}
}
Example Styling for Appointment Count
CSS
.daily-count-label {
background-color: red;
border-radius: 50%;
color: white;
padding: 5px;
}