{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-default",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "default",
  "dependencies": [
    "Syncfusion.AspNetCore.Schedule"
  ],
  "description": "Scheduler bound to in-memory appointment data, fixed to a 650px height with a selected default date.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 2 (v34.1.29)",
    "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/aspnetcore/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/scheduler-default.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-default/scheduler.cshtml",
      "content": "@page\n\n@model EJ2CoreSampleBrowser.Models.DefaultFunctionalitiesModel\n\n    <div class=\"col-lg-9 control-section\">\n        <div class=\"schedule-wrapper\">\n            <ejs-schedule id=\"schedule\" height=\"650px\" selectedDate=\"new DateTime(DateTime.Today.Year, 1, 10)\">\n                <e-schedule-eventsettings dataSource=\"@Model.DataSource\"></e-schedule-eventsettings>\n            </ejs-schedule>\n        </div>\n    </div>\n\n    <script type=\"text/javascript\">\n        function onChange(args) {\n            var scheduleObj = document.getElementById('schedule').ej2_instances[0];\n            scheduleObj.selectedDate = args.value;\n            scheduleObj.dataBind();\n        }\n    </script>"
    },
    {
      "target": "src/components/scheduler-default/scheduler.cshtml.cs",
      "content": "using Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Models;\n\npublic class DefaultFunctionalitiesModel : PageModel\n{\n    public List<AppointmentData> DataSource { get; set; }\n\n    public void OnGet()\n    {\n        DataSource = GetAppointmentData();\n    }\n\n    private static DateTime Today = DateTime.Now;\n    private int CurrentYear = Today.Year;\n\n    public List<AppointmentData> GetAppointmentData()\n    {\n        List<AppointmentData> appData = new List<AppointmentData>();\n        appData.Add(new AppointmentData\n        {\n            Id = 1,\n            Subject = \"Explosion of Betelgeuse Star\",\n            Location = \"Space Centre USA\",\n            StartTime = new DateTime(CurrentYear, 1, 9, 9, 30, 0),\n            EndTime = new DateTime(CurrentYear, 1, 9, 11, 0, 0),\n            CategoryColor = \"#1aaa55\"\n        });\n        appData.Add(new AppointmentData\n        {\n            Id = 9,\n            Subject = \"Alien Civilization\",\n            Location = \"Space Centre USA\",\n            StartTime = new DateTime(CurrentYear, 1, 17, 11, 0, 0),\n            EndTime = new DateTime(CurrentYear, 1, 17, 13, 0, 0),\n            CategoryColor = \"#7fa900\"\n        });\n        appData.Add(new AppointmentData\n        {\n            Id = 10,\n            Subject = \"Wildlife Galleries\",\n            Location = \"Africa\",\n            StartTime = new DateTime(CurrentYear, 1, 19, 11, 0, 0),\n            EndTime = new DateTime(CurrentYear, 1, 19, 13, 0, 0),\n            CategoryColor = \"#ea7a57\"\n        });\n\n        return appData;\n    }\n}\n\npublic class AppointmentData\n{\n    public int Id { get; set; }\n    public string Subject { get; set; }\n    public string Location { get; set; }\n    public DateTime StartTime { get; set; }\n    public DateTime EndTime { get; set; }\n    public string CategoryColor { get; set; }\n}\n"
    }
  ]
}