{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-resource-view",
  "framework": "aspnet-mvc",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "resource-view",
  "dependencies": [
    "Syncfusion.AspNetMvc.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-mvc/llms.txt",
    "skillPack": "syncfusion/aspnetmvc-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-mvc/gantt-resource-view.md"
  },
  "files": [
    {
      "target": "src/components/gantt-resource-view/Gantt.cshtml",
      "content": "@{\n    ViewData[\"Title\"] = \"ResourceView\";\n}\n\n@section ControlsSection{\n    <div class=\"control-section\">\n        <div class=\"content-wrapper\">\n           @{\n                List<object> toolbarItems = new List<object>();\n                toolbarItems.Add(\"Add\");\n                toolbarItems.Add(\"Edit\");\n                toolbarItems.Add(\"Update\");\n                toolbarItems.Add(\"Delete\");\n                toolbarItems.Add(\"Cancel\");\n                toolbarItems.Add(\"ExpandAll\");\n                toolbarItems.Add(\"CollapseAll\");\n                toolbarItems.Add(new { text = \"Show/Hide Overallocation\", tooltipText = \"Show/Hide Overallocation\", id = \"showhidebar\" });\n            }\n            @(Html.EJS().Gantt(\"ResourceView\").DataSource((IEnumerable<object>)ViewData[\"DataSource\"]).Height(\"450px\")\n                .ViewType(Syncfusion.EJ2.Gantt.ViewType.ResourceView).HighlightWeekends(true).AllowSelection(true).AllowResizing(true)\n                .ShowOverAllocation(true).ToolbarClick(\"ToolbarClick\").Toolbar(toolbarItems).TaskType(Syncfusion.EJ2.Gantt.TaskType.FixedWork)\n                .TaskFields(ts => ts.Id(\"TaskId\").Name(\"TaskName\").Work(\"Work\").StartDate(\"StartDate\").EndDate(\"EndDate\")\n                .Duration(\"Duration\").Progress(\"Progress\").Dependency(\"Predecessor\").ResourceInfo(\"Resources\").Child(\"SubTasks\"))\n                .TreeColumnIndex(1).ResourceFields(rf => rf.Id(\"ResourceId\").Name(\"ResourceName\").Unit(\"ResourceUnit\").Group(\"ResourceGroup\"))\n                .EditSettings(es => es.AllowAdding(true).AllowEditing(true).AllowDeleting(true).AllowTaskbarEditing(true)\n                .ShowDeleteConfirmDialog(true)).Resources((IEnumerable<object>)ViewData[\"Resources\"])\n                .Columns(col =>\n                {\n                    col.Field(\"TaskId\").Visible(false).Add();\n                    col.Field(\"TaskName\").HeaderText(\"Name\").Width(250).Add();\n                    col.Field(\"Work\").HeaderText(\"Work\").Add();\n                    col.Field(\"Progress\").Add();\n                    col.Field(\"ResourceGroup\").HeaderText(\"Group\").Add();\n                    col.Field(\"StartDate\").Width(100).Add();\n                    col.Field(\"Duration\").Width(100).Add();\n                })\n                .LabelSettings(ls => ls.RightLabel(\"Resources\").TaskLabel(\"Progress\")).SplitterSettings(sp => sp.ColumnIndex(3))\n                .ProjectStartDate(\"03/28/2024\").ProjectEndDate(\"05/18/2024\")\n                .Render()\n            )\n            <script>\n                function ToolbarClick(args) {\n                    if (args.item.id === 'showhidebar') {\n                        var ganttObj = document.getElementById(\"ResourceView\").ej2_instances[0];\n                        ganttObj.showOverAllocation = ganttObj.showOverAllocation ? false : true;\n                    }\n                };\n            </script>\n        </div>\n    </div>\n}\n"
    },
    {
      "target": "src/components/gantt-resource-view/GanttController.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing System.Linq;\nusing System.Web;\nusing System.Web.Mvc;\nusing EJ2MVCSampleBrowser.Models;\n\nnamespace EJ2MVCSampleBrowser.Controllers.Gantt\n{\n    public partial class GanttChartController : Controller\n    {\n        // GET: Gantt\n        public ActionResult ResourceView()\n        {\n            ViewData[\"DataSource\"] = GanttData.ResourceViewData();\n            ViewData[\"Resources\"] = GanttData.GetResourceGroup();\n            return View(\"~/Views/Home/gantt/resource-view/Gantt.cshtml\");\n        }\n    }\n}"
    }
  ]
}