{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-exporting",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "exporting",
  "dependencies": [
    "Syncfusion.AspNetCore.Gantt"
  ],
  "description": "Gantt chart with toolbar commands for exporting project data to Excel and PDF formats.",
  "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-exporting.md"
  },
  "files": [
    {
      "target": "src/components/gantt-exporting/gantt.cshtml",
      "content": "@page\n@namespace aspnet_core.Gantt.Exporting\n@model EJ2CoreSampleBrowser.Gantt.Exporting.ExportingModel\n@using Syncfusion.EJ2\n@using Syncfusion.EJ2.Gantt\n\n    <div class=\"control-section\">\n        <div class=\"row\">\n            <div class=\"col-md-12\">\n                <ejs-gantt id='Exporting' dataSource=\"@Model.DataSource\" height=\"420px\" rowHeight=\"46\"\n                    taskbarHeight=\"25\" treeColumnIndex=\"1\" highlightWeekends=\"true\"\n                    projectStartDate=\"2025-04-01\" projectEndDate=\"2025-08-31\"\n                    toolbarItems=\"@(new List<string>() { \"Search\", \"ExpandAll\", \"CollapseAll\", \"ExcelExport\", \"CsvExport\", \"PdfExport\" })\">\n                    <e-gantt-taskfields id=\"TaskId\" name=\"TaskName\" startDate=\"StartDate\" endDate=\"EndDate\" duration=\"Duration\"\n                        progress=\"Progress\" dependency=\"Predecessor\" parentID=\"ParentID\">\n                    </e-gantt-taskfields>\n                    <e-gantt-columns>\n                        <e-gantt-column field=\"TaskId\" width=\"80\"></e-gantt-column>\n                        <e-gantt-column field=\"TaskName\" headerText=\"Task\" width=\"250\" clipMode=\"EllipsisWithTooltip\"></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-splittersettings columnIndex=\"2\"></e-gantt-splittersettings>\n                    <e-gantt-labelSettings leftLabel=\"TaskName\"></e-gantt-labelSettings>\n                </ejs-gantt>\n            </div>\n        </div>\n    </div>\n"
    },
    {
      "target": "src/components/gantt-exporting/gantt.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Gantt.Exporting\n{\n    public class ExportingModel : PageModel\n    {\n        public List<ExportingTask> DataSource { get; set; }\n\n        public void OnGet()\n        {\n            DataSource = new List<ExportingTask>\n            {\n                new ExportingTask { TaskId = 1, TaskName = \"Plan and design\",  StartDate = new DateTime(2025, 4, 1),  EndDate = new DateTime(2025, 4, 14), Duration = 10, Progress = 100 },\n                new ExportingTask { TaskId = 2, TaskName = \"Build prototype\", StartDate = new DateTime(2025, 4, 15), EndDate = new DateTime(2025, 5, 5),  Duration = 15, Progress = 80, ParentID = 1 },\n                new ExportingTask { TaskId = 3, TaskName = \"Beta testing\",    StartDate = new DateTime(2025, 5, 6),  EndDate = new DateTime(2025, 5, 26), Duration = 15, Progress = 40, Predecessor = \"2\" },\n                new ExportingTask { TaskId = 4, TaskName = \"Public launch\",   StartDate = new DateTime(2025, 5, 27), EndDate = new DateTime(2025, 6, 10), Duration = 10, Progress = 0,  Predecessor = \"3\" },\n            };\n        }\n    }\n\n    public class ExportingTask\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 ParentID { get; set; }\n        public string Predecessor { get; set; }\n    }\n}\n"
    }
  ]
}