# scheduler-default

> Scheduler displays sample appointments with day, week, workweek, month, and agenda views for calendar navigation.

**Framework:** blazor  **Component:** Scheduler  **Variant:** default

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/blazor/scheduler-default.json
```

**Install Package(s)**

```bash
dotnet add package Syncfusion.Blazor.Schedule
```

**Notes**

- Syncfusion release: 2026 Volume 2 (v34.1.29)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/scheduler-default/DataSource.cs

```cs
using System;
using System.Collections.Generic;
namespace BlazorDemos.Pages.Schedule.Scheduler
{
    public class ScheduleData
    {
        
        private int CurrentYear = DateTime.Now.Year;
        public List<AppointmentData> GetScheduleData()
        {
            List<AppointmentData> appData = new List<AppointmentData>();
            appData.Add(new AppointmentData
            {
                Id = 1,
                Subject = "Explosion of Betelgeuse Star",
                Location = "Space Centre USA",
                StartTime = new DateTime(CurrentYear, 1, 5, 9, 30, 0),
                EndTime = new DateTime(CurrentYear, 1, 5, 11, 30, 0),
                CategoryColor = "#1aaa55"
            });
            appData.Add(new AppointmentData
            {
                Id = 14,
                Subject = "Aliens vs Humans",
                Location = "Research Centre of USA",
                StartTime = new DateTime(CurrentYear, 12, 31, 10, 0, 0),
                EndTime = new DateTime(CurrentYear, 12, 31, 11, 30, 0),
                CategoryColor = "#357cd2"
            });
            appData.Add(new AppointmentData
            {
                Id = 15,
                Subject = "Facts of Humming Birds",
                Location = "California",
                StartTime = new DateTime(CurrentYear, 1, 14, 9, 30, 0),
                EndTime = new DateTime(CurrentYear, 1, 14, 11, 0, 0),
                CategoryColor = "#7fa900"
            });
            return appData;
        }
        
        public class AppointmentData
        {
            public int Id { get; set; }
            public string? Subject { get; set; }
            public string? Location { get; set; }
            public string? Description { get; set; }
            public DateTime StartTime { get; set; }
            public DateTime EndTime { get; set; }
            public Nullable<bool> IsAllDay { get; set; }
            public string? CategoryColor { get; set; }
            public string? RecurrenceRule { get; set; }
            public Nullable<int> RecurrenceID { get; set; }
            public Nullable<int> FollowingID { get; set; }
            public string? RecurrenceException { get; set; }
            public string? StartTimezone { get; set; }
            public string? EndTimezone { get; set; }
        }
    }
}
```

### src/components/scheduler-default/Scheduler.razor

```razor
@page "/scheduler/default-functionalities"
@using Syncfusion.Blazor.Schedule
@using BlazorDemos.Pages.Schedule.Scheduler

<div class="col-lg-12 control-section">
    <SfSchedule TValue="ScheduleData.AppointmentData" Width="100%" Height="650px" @bind-SelectedDate="@CurrentDate">
        <ScheduleEventSettings DataSource="@ScheduleDataSource"></ScheduleEventSettings>
        <ScheduleViews>
            <ScheduleView Option="View.Day"></ScheduleView>
            <ScheduleView Option="View.Week"></ScheduleView>
            <ScheduleView Option="View.WorkWeek"></ScheduleView>
            <ScheduleView Option="View.Month"></ScheduleView>
            <ScheduleView Option="View.Agenda"></ScheduleView>
        </ScheduleViews>
    </SfSchedule>
</div>
@code{
    public DateTime CurrentDate { get; set; } = new DateTime(DateTime.Today.Year, 1, 3);
    private List<ScheduleData.AppointmentData> ScheduleDataSource = new ScheduleData().GetScheduleData();
}
```
