{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-timeline-grouping",
  "framework": "blazor",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "timeline-grouping",
  "dependencies": [
    "Syncfusion.Blazor.Schedule"
  ],
  "description": "Scheduler grouping appointments by department and resource to compare schedules across teams.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/blazor/llms.txt",
    "skillPack": "syncfusion/blazor-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/blazor/scheduler-timeline-grouping.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-timeline-grouping/Scheduler.razor",
      "content": "@page \"/scheduler/timeline-grouping\"\n@namespace blazor.Components.Pages.TimelineGrouping.TimelineGrouping\n@using Syncfusion.Blazor.Schedule\n\n<div class=\"control-section\">\n    <div class=\"schedule-container\">\n        <SfSchedule TValue=\"TimelineAppointment\" Width=\"100%\" Height=\"650px\" CurrentView=\"View.TimelineWeek\"\n                    @bind-SelectedDate=\"SelectedDate\">\n            <ScheduleResources>\n                <ScheduleResource TItem=\"DepartmentResource\" TValue=\"DepartmentResource\" Name=\"Departments\"\n                                 DataSource=\"@Departments\" Field=\"DepartmentId\" Title=\"Department\"\n                                 TextField=\"Name\" IdField=\"Id\" ColorField=\"Color\">\n                </ScheduleResource>\n            </ScheduleResources>\n            <ScheduleEventSettings TValue=\"TimelineAppointment\" DataSource=\"@Appointments\"></ScheduleEventSettings>\n            <ScheduleViews>\n                <ScheduleView Option=\"View.TimelineDay\"></ScheduleView>\n                <ScheduleView Option=\"View.TimelineWeek\"></ScheduleView>\n                <ScheduleView Option=\"View.TimelineWorkWeek\"></ScheduleView>\n            </ScheduleViews>\n            <ScheduleGroup Resources=\"@(new string[] { \"Departments\" })\"></ScheduleGroup>\n            <ScheduleTimescale Enable=\"true\" SlotCount=\"1\"></ScheduleTimescale>\n        </SfSchedule>\n    </div>\n</div>\n\n@code {\n    public DateTime SelectedDate { get; set; } = DateTime.Today;\n\n    public List<DepartmentResource> Departments { get; set; } = new List<DepartmentResource>\n    {\n        new DepartmentResource { Id = 1, Name = \"Team A\", Color = \"#4f8ef7\" },\n        new DepartmentResource { Id = 2, Name = \"Team B\", Color = \"#f7814f\" },\n        new DepartmentResource { Id = 3, Name = \"Team C\", Color = \"#65c17f\" },\n    };\n\n    public List<TimelineAppointment> Appointments { get; set; } = new List<TimelineAppointment>\n    {\n        new TimelineAppointment { Id = 1, Subject = \"Sprint planning\",  DepartmentId = 1, StartTime = DateTime.Today.AddHours(9),  EndTime = DateTime.Today.AddHours(11) },\n        new TimelineAppointment { Id = 2, Subject = \"Stakeholder sync\", DepartmentId = 2, StartTime = DateTime.Today.AddDays(1).AddHours(14), EndTime = DateTime.Today.AddDays(1).AddHours(15) },\n        new TimelineAppointment { Id = 3, Subject = \"Demo day\",         DepartmentId = 3, StartTime = DateTime.Today.AddDays(2).AddHours(10), EndTime = DateTime.Today.AddDays(2).AddHours(12) },\n    };\n\n    public class DepartmentResource\n    {\n        public int Id { get; set; }\n        public string Name { get; set; } = string.Empty;\n        public string Color { get; set; } = string.Empty;\n    }\n\n    public class TimelineAppointment\n    {\n        public int Id { get; set; }\n        public string Subject { get; set; } = string.Empty;\n        public int DepartmentId { get; set; }\n        public DateTime StartTime { get; set; }\n        public DateTime EndTime { get; set; }\n    }\n}"
    }
  ]
}