{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-resource-view",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "resource-view",
  "dependencies": [
    "Syncfusion.AspNetCore.Gantt"
  ],
  "description": "Gantt chart showing project tasks organized by assigned resources and resource groups.",
  "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/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/gantt-resource-view.md"
  },
  "files": [
    {
      "target": "src/components/gantt-resource-view/gantt.cshtml",
      "content": "@page\n@namespace aspnet_core.Gantt.ResourceView\n@model EJ2CoreSampleBrowser.Gantt.ResourceView.ResourceViewModel\n@using Syncfusion.EJ2\n\n    <div class=\"control-section\">\n        <div class=\"row\">\n            <div class=\"col-md-12\">\n                <ejs-gantt id='ResourceView' dataSource=\"@Model.DataSource\" height=\"450px\" rowHeight=\"46\"\n                    taskbarHeight=\"22\" treeColumnIndex=\"2\" resourceNameMapping=\"ResourceName\" resourceIDMapping=\"ResourceId\"\n                    resources=\"@Model.Resources\" viewType=\"ResourceView\" showResourceName=\"true\"\n                    highlightWeekends=\"true\"\n                    projectStartDate=\"2025-04-01\" projectEndDate=\"2025-08-31\">\n                    <e-gantt-taskfields id=\"TaskId\" name=\"TaskName\" startDate=\"StartDate\" endDate=\"EndDate\" duration=\"Duration\" progress=\"Progress\" resourceInfo=\"Resources\"></e-gantt-taskfields>\n                    <e-gantt-resourcefields id=\"ResourceId\" name=\"ResourceName\" unit=\"Unit\"></e-gantt-resourcefields>\n                    <e-gantt-columns>\n                        <e-gantt-column field=\"TaskId\" width=\"80\"></e-gantt-column>\n                        <e-gantt-column field=\"TaskName\" headerText=\"Task\" width=\"220\" clipMode=\"EllipsisWithTooltip\"></e-gantt-column>\n                        <e-gantt-column field=\"Resources\"></e-gantt-column>\n                        <e-gantt-column field=\"StartDate\"></e-gantt-column>\n                        <e-gantt-column field=\"Duration\"></e-gantt-column>\n                        <e-gantt-column field=\"Progress\"></e-gantt-column>\n                    </e-gantt-columns>\n                    <e-gantt-labelSettings leftLabel=\"TaskName\" rightLabel=\"Resources\"></e-gantt-labelSettings>\n                    <e-gantt-splittersettings columnIndex=\"3\"></e-gantt-splittersettings>\n                </ejs-gantt>\n            </div>\n        </div>\n    </div>\n"
    },
    {
      "target": "src/components/gantt-resource-view/gantt.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Gantt.ResourceView\n{\n    public class ResourceViewModel : PageModel\n    {\n        public List<ResourceViewTask> DataSource { get; set; }\n        public List<ResourceInfo> Resources { get; set; }\n\n        public void OnGet()\n        {\n            Resources = new List<ResourceInfo>\n            {\n                new ResourceInfo { ResourceId = 1, ResourceName = \"Resource A\", Unit = 100 },\n                new ResourceInfo { ResourceId = 2, ResourceName = \"Resource B\", Unit = 100 },\n                new ResourceInfo { ResourceId = 3, ResourceName = \"Resource C\", Unit = 50 },\n            };\n            DataSource = new List<ResourceViewTask>\n            {\n                new ResourceViewTask { TaskId = 1, TaskName = \"Discovery\",   StartDate = new DateTime(2025, 4, 7),  EndDate = new DateTime(2025, 4, 11), Duration = 5,  Progress = 100, Resources = new int[] { 1 } },\n                new ResourceViewTask { TaskId = 2, TaskName = \"Spec\",        StartDate = new DateTime(2025, 4, 14), EndDate = new DateTime(2025, 4, 25), Duration = 10, Progress = 80,  Resources = new int[] { 2 } },\n                new ResourceViewTask { TaskId = 3, TaskName = \"Build\",       StartDate = new DateTime(2025, 5, 5),  EndDate = new DateTime(2025, 6, 13), Duration = 30, Progress = 50,  Resources = new int[] { 1, 2 } },\n                new ResourceViewTask { TaskId = 4, TaskName = \"Polish\",      StartDate = new DateTime(2025, 6, 16), EndDate = new DateTime(2025, 6, 27), Duration = 10, Progress = 10,  Resources = new int[] { 3 } },\n            };\n        }\n    }\n\n    public class ResourceViewTask\n    {\n        public int TaskId { get; set; }\n        public string TaskName { get; set; }\n        public DateTime StartDate { get; set; }\n        public DateTime EndDate { get; set; }\n        public int Duration { get; set; }\n        public int Progress { get; set; }\n        public int[] Resources { get; set; }\n    }\n\n    public class ResourceInfo\n    {\n        public int ResourceId { get; set; }\n        public string ResourceName { get; set; }\n        public int Unit { get; set; }\n    }\n}\n"
    }
  ]
}