New to Telerik UI for BlazorStart a free 30-day trial

Agenda View

The Agenda view of the Scheduler for Blazor shows a weekly summary (or another custom period set by the user) in a table format.

In this article:

View Parameters

The following parameters allow you to configure the Agenda view:

AttributeType and Default ValueDescription
NumberOfDaysint
(7)
Represents the number of days shown in the view.
HideEmptyAgendaDaysbool
(true)
Defines whether dates with no appointments are rendered.

Example

You can declare other views as well, this example adds only the Agenda view for brevity.

Declare the Agenda view in the markup

<label for="hide-emptydays-checkbox" class="k-checkbox-label checkbox-label">Hide Empty Days</label>
<TelerikCheckBox @bind-Value="@HideEmptyDays" Id="hide-emptydays-checkbox"></TelerikCheckBox>

<TelerikScheduler Data="@Appointments" @bind-Date="@StartDate" Width="800px">
    <SchedulerViews>
        @* Enable the Agenda view and use the 'HideEmptyAgendaDays' option to control whether days without appointments are shown in the Agenda view*@
        <SchedulerAgendaView HideEmptyAgendaDays="@HideEmptyDays" />
    </SchedulerViews>
</TelerikScheduler>

@code {
    private DateTime StartDate { get; set; } = new DateTime(2024, 10, 22);

    private bool HideEmptyDays { get; set; }

    private List<SchedulerAppointment> Appointments = new List<SchedulerAppointment>()
{
    new SchedulerAppointment
    {
        Title = "Team Meeting",
        Description = "Discuss the project progress.",
        Start = new DateTime(2024, 10, 14, 10, 00, 0),
        End = new DateTime(2024, 10, 14, 11, 00, 0)
    },
    new SchedulerAppointment
    {
        Title = "Doctor Appointment",
        Description = "Routine check-up.",
        Start = new DateTime(2024, 10, 16, 9, 30, 0),
        End = new DateTime(2024, 10, 16, 10, 00, 0)
    },
    new SchedulerAppointment
    {
        Title = "Client Call",
        Description = "Quarterly review with the client.",
        Start = new DateTime(2024, 10, 22, 14, 00, 0),
        End = new DateTime(2024, 10, 22, 15, 00, 0)
    },
    new SchedulerAppointment
    {
        Title = "Weekly Team Meeting",
        Description = "Discuss the project progress.",
        Start = new DateTime(2024, 10, 23, 13, 30, 0),
        End = new DateTime(2024, 10, 23, 14, 00, 0)
    },
    new SchedulerAppointment
    {
        Title = "Security Training",
        Description = "Security Training",
        Start = new DateTime(2024, 10, 24, 10, 30, 0),
        End = new DateTime(2024, 10, 24, 11, 30, 0)
    },
    new SchedulerAppointment
    {
        Title = "Gym Workout",
        Description = "Training",
        Start = new DateTime(2024, 10, 24, 17, 00, 0),
        End = new DateTime(2024, 10, 24, 18, 30, 0)
    },
    new SchedulerAppointment
    {
        Title = "Team Outing",
        Description = "Lunch with the team.",
        Start = new DateTime(2024, 10, 25, 12, 30, 0),
        End = new DateTime(2024, 10, 25, 14, 00, 0)
    },
    new SchedulerAppointment
    {
        Title = "Webinar",
        Description = "Industry trends and insights.",
        Start = new DateTime(2024, 10, 28, 00, 00, 0),
        End = new DateTime(2024, 10, 29, 00, 00, 0),
        IsAllDay = true
    },
    new SchedulerAppointment
    {
        Title = "Project Deadline",
        Description = "Final submission of deliverables.",
        Start = new DateTime(2024, 10, 29, 9, 00, 0),
        End = new DateTime(2024, 10, 29, 12, 00, 0)
    }
};

    public class SchedulerAppointment
    {
        public string Title { get; set; }
        public string Description { get; set; }
        public DateTime Start { get; set; }
        public DateTime End { get; set; }
        public bool IsAllDay { get; set; }
    }
}

See Also

In this article
View ParametersExampleSee Also
Not finding the help you need?
Contact Support