{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "gantt-exporting",
  "framework": "blazor",
  "type": "registry:component",
  "component": "Gantt",
  "variant": "exporting",
  "dependencies": [
    "Syncfusion.Blazor.Gantt"
  ],
  "description": "Gantt chart with export commands for Excel and PDF reports to share project data.",
  "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/gantt-exporting.md"
  },
  "files": [
    {
      "target": "src/components/gantt-exporting/Gantt.razor",
      "content": "@page \"/gantt/exporting\"\n@namespace blazor.Components.Pages.Exporting.Exporting\n@using Syncfusion.Blazor.Gantt\n\n<div class=\"control-section\" aria-label=\"Gantt with export toolbar\">\n    <SfGantt TValue=\"ExportingTask\" @ref=\"GanttRef\" Height=\"420px\" RowHeight=\"46\" TaskbarHeight=\"25\"\n             TreeColumnIndex=\"1\" DataSource=\"@Tasks\" ProjectStartDate=\"new DateTime(2025, 4, 1)\"\n             ProjectEndDate=\"new DateTime(2025, 8, 31)\" Toolbar=\"@(new List<string>() { \"Search\", \"ExpandAll\", \"CollapseAll\", \"ExcelExport\", \"CsvExport\", \"PdfExport\" })\">\n        <GanttTaskFields Id=\"TaskId\" Name=\"TaskName\" StartDate=\"StartDate\" EndDate=\"EndDate\"\n                          Duration=\"Duration\" Progress=\"Progress\" Dependency=\"Predecessor\" ParentID=\"ParentID\">\n        </GanttTaskFields>\n        <GanttColumns>\n            <GanttColumn Field=\"TaskId\" Width=\"80\"></GanttColumn>\n            <GanttColumn Field=\"TaskName\" HeaderText=\"Task\" Width=\"250\"></GanttColumn>\n            <GanttColumn Field=\"StartDate\" Width=\"120\"></GanttColumn>\n            <GanttColumn Field=\"Duration\" Width=\"100\"></GanttColumn>\n            <GanttColumn Field=\"Progress\" Width=\"100\"></GanttColumn>\n        </GanttColumns>\n        <GanttLabelSettings TValue=\"ExportingTask\" LeftLabel=\"TaskName\" RightLabel=\"Progress\"></GanttLabelSettings>\n        <GanttSplitterSettings ColumnIndex=\"2\"></GanttSplitterSettings>\n    </SfGantt>\n</div>\n\n@code {\n    public SfGantt<ExportingTask>? GanttRef { get; set; }\n    public List<ExportingTask> Tasks { get; set; } = new List<ExportingTask>();\n\n    protected override void OnInitialized()\n    {\n        Tasks = 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    public class ExportingTask\n    {\n        public int TaskId { get; set; }\n        public string TaskName { get; set; } = string.Empty;\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; } = string.Empty;\n    }\n}\n"
    }
  ]
}