Syncfusion ASP.NET Core Gantt Chart
The Syncfusion EJ2 Gantt Chart for ASP.NET Core is a powerful project management component that visualizes project schedules, task dependencies, resource allocation, and timelines using Tag Helpers.
When to Use This Skill
Use this skill when you need to:
- Set up and render a Gantt Chart in an ASP.NET Core application
- Bind local or remote data to the Gantt control
- Configure task fields, columns, and the chart timeline
- Enable editing (cell, dialog, taskbar), manage tasks (add/delete/update)
- Define task dependencies (FS, SS, FF, SF) and predecessors
- Assign and display resources on tasks
- Filter, sort, search, or select rows/cells
- Export to Excel or PDF
- Customize the timeline, taskbars, labels, holidays, and event markers
- Configure task scheduling modes (Auto/Manual/Custom)
- Enable undo/redo, state persistence, virtual scrolling, or critical path
- Scroll the component, configure row height, or drag-and-drop rows
- Set timezone or localise the UI for different cultures and RTL languages
- Handle events (actionBegin, actionComplete, cellEdit) or call public methods programmatically
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- NuGet package installation
- Tag Helper import & CDN setup
- Script manager registration
- First Gantt control (Index.cshtml + Controller)
- Mapping task fields & defining columns
- Enabling editing, filtering, sorting
Data Binding
📄 Read: references/data-binding.md
- Local hierarchical data binding
- Local flat/self-referential data binding
- Remote data (URL Adaptor, OData, Web API)
- Load on demand (lazy loading child records)
- DynamicObject and ExpandoObject binding
Columns
📄 Read: references/columns.md
- Defining columns and field mapping
- Custom column headers & header templates
- Column templates & value accessors
- Checkbox column, frozen columns
- Column reordering, resizing, spanning
- Responsive columns, WBS column, column menu
Managing Tasks (Editing)
📄 Read: references/managing-tasks.md
- IsPrimaryKey requirement for CRUD
- Cell editing, dialog editing, taskbar editing
- Adding and deleting tasks
- Indent / outdent tasks
- Splitting and merging tasks
- Server-side CRUD persistence
- Edit validation and error handling
Task Dependencies
📄 Read: references/task-dependency.md
- SS, SF, FS, FF relationship types
- Mapping dependency field
- Predecessor offset values
- Dependency editing via mouse drag
- Validation, error handling, parent dependencies
Resources
📄 Read: references/resources.md
- Resource collection and field mapping
- Assigning resources to tasks
- Resource view mode
- Multi-taskbar display
- Resource customization
Filtering
📄 Read: references/filtering.md
- Menu filtering (column-level)
- Excel-like filtering
- Toolbar search / searching
- Filter settings and programmatic filtering
Sorting
📄 Read: references/sorting.md
- Enabling sorting, multi-column sort
- Initial sort configuration
- Programmatic sort / clear sort
Timeline
📄 Read: references/timeline.md
- Top tier and bottom tier configuration
- Timeline view modes (Hour, Day, Week, Month, Year)
- Custom timeline units and formats
- Timeline template
- Infinite timeline scrolling
- Zooming in and out
Task Scheduling
📄 Read: references/task-scheduling.md
- Auto, Manual, Custom scheduling modes
- Duration units (day, hour, minute, week, month)
- Unscheduled tasks
- Task constraints (ALAP, ASAP, FNLT, SNLT, MSO, MFO)
Baseline
📄 Read: references/baseline.md
- Baseline feature overview and use cases
- Mapping baseline date fields (baselineStartDate, baselineEndDate, baselineDuration)
- Enabling baseline display with renderBaseline and customizing baselineColor
- Rendering baseline milestones with explicit zero duration
- CSS styling of baseline bars
- Baseline templates and dynamic customization
- Multiple baseline rendering for comparing multiple planning phases
Selection
📄 Read: references/selection.md
- Row selection and cell selection
- Single/multiple selection modes
- Programmatic selection
Scrolling
📄 Read: references/scrolling.md
- Configure component
height and width to enable scrollbars
- Responsive sizing with
100% and parent container height requirements
- Programmatic timeline scroll via
scrollToDate()
- Set vertical scroll with
ganttObj.ganttChartModule.scrollObject.setScrollTop()
Rows
📄 Read: references/rows.md
- Configure global
rowHeight and per-row expand state via taskFields.expandState
- Collapse all parent tasks at load with
collapseAllParentTasks
- Customize row appearance with
rowDataBound and queryTaskbarInfo
- Row spanning via
queryCellInfo.rowSpan and clip modes for overflow
Row Drag And Drop
📄 Read: references/row-drag-and-drop.md
- Enable row reordering with
allowRowDragAndDrop and selectionSettings.type = "Multiple" for multi-drag
- Allow taskbar-based drag with
allowTaskbarDragAndDrop and edit mode Auto
- Lifecycle events:
rowDragStartHelper, rowDragStart, rowDrag, rowDrop
- Programmatic reordering via
reorderRows(fromIndexes, toIndex, position)
Timezone
📄 Read: references/timezone.md
- Set
timezone (e.g., UTC, America/New_York) to normalise displayed dates across clients
- CRUD operations respect configured timezone and convert for server persistence
- Utility methods:
ej.schedule.Timezone().offset(), convert(), and remove() for programmatic conversions
Globalization
📄 Read: references/globalization.md
- Localize UI text via
locale and ej.base.L10n.load() translation objects
- Internationalization: load CLDR files to format dates and numbers per culture
- Enable RTL layout with
enableRtl="true" for right-to-left languages
Export (Excel & PDF)
📄 Read: references/export.md
- Excel export with column and data customization
- PDF export with themes and custom columns
- Exporting multiple Gantt charts to a single PDF
Toolbar
📄 Read: references/toolbar.md
- Built-in toolbar items (Add, Edit, Delete, Search, ExpandAll, CollapseAll, ExcelExport, PdfExport, ZoomIn, ZoomOut, ZoomToFit, UndoRedo)
- Custom toolbar items and click handling
- Enabling/disabling toolbar items programmatically
Context Menu
📄 Read: references/context-menu.md
- Enable context menu with
enableContextMenu="true"
- Built-in context menu items for CRUD operations
- Custom context menu items and click event handling
Taskbar
📄 Read: references/taskbar.md
- Taskbar templates using
text/x-jsrender (taskbarTemplate, parentTaskbarTemplate, milestoneTemplate)
- Control taskbar size with
taskbarHeight (must be less than rowHeight)
- Dynamic taskbar/progress styling with
queryTaskbarInfo (e.g., taskbarBgColor, progressBarBgColor, isCritical)
- Change the drag gripper icon via CSS overrides
- Customize dependency connector lines with
connectorLineWidth and connectorLineBackground
- Multi-taskbar display in project view using
enableMultiTaskbar="true"
Labels and Tooltips
📄 Read: references/labels-and-tooltips.md
- Left/right/inside label templates on taskbars
- Taskbar tooltip customization via
tooltipSettings
- Connector line and baseline tooltips
Event Markers
📄 Read: references/event-markers.md
- Add striplines/event markers with
<e-gantt-eventmarkers>
- Custom label and CSS class per marker
- Dynamic event markers
Critical Path
📄 Read: references/critical-path.md
- Enable critical path highlighting with
enableCriticalPath="true"
- Critical path rendering and customization
- Critical slack value configuration
Splitter
📄 Read: references/splitter.md
- Configure grid/chart pane ratio with
splitterSettings
- Set splitter position by column index, percentage, or pixel
- Programmatic splitter position update via
setSplitterPosition()
Undo and Redo
📄 Read: references/undo-redo.md
- Enable undo/redo via toolbar items or
Ctrl+Z / Ctrl+Y
- Configure undo-redo history size (
undoRedoStepsCount)
- Supported actions and programmatic
undo() / redo() calls
State Persistence
📄 Read: references/state-persistence.md
- Enable persistence with
enablePersistence="true" (saves to localStorage)
- Persisted properties: filter, sort, column width, scroll position, zoom level
- Clearing persisted state programmatically
Immutable Mode
📄 Read: references/immutable-mode.md
- Enable
enableImmutableMode="true" to prevent re-render of unchanged rows
- Performance benefit for large data sets with frequent updates
- Limitations and usage patterns
Virtual Scroll
📄 Read: references/virtual-scroll.md
- Enable row virtualization with
enableVirtualization="true"
- Enable timeline virtualization with
enableTimelineVirtualization="true"
- Performance characteristics and known limitations
Loading Animation
📄 Read: references/loading-animation.md
- Built-in spinner shown during data load
- Show/hide loading indicator programmatically via
showSpinner() / hideSpinner()
- Custom loading template
Style and Appearance
📄 Read: references/style-and-appearance.md
- Applying Syncfusion themes (Bootstrap, Material, Fabric, High Contrast)
- CSS class overrides for taskbars, grid rows, and header
queryTaskbarInfo event for per-task styling
Events
📄 Read: references/events.md
- Wire events via camelCase Tag Helper attributes (
actionBegin, actionComplete, actionFailure)
actionBegin — cancel-able hook before every CRUD, filter, sort, zoom, and dependency action
actionComplete — post-action callback with requestType reference table
cellEdit — prevent specific cells or rows from entering edit mode
beforeTooltipRender — customise or suppress any tooltip dynamically
- Row/cell selection events:
rowSelecting, rowSelected, rowDeselecting, rowDeselected, cellSelecting, cellSelected
- Export events:
beforeExcelExport, beforePdfExport, excelExportComplete, pdfExportComplete
Public Methods
📄 Read: references/methods.md
- Data access:
getCurrentViewData(), getRecordByID(), getTaskByUniqueID(), getRowByID()
- Row expand/collapse:
expandAll(), collapseAll(), expandByID(), collapseByID(), expandByIndex()
- Task utilities:
changeTaskMode(), convertToMilestone(), updateTaskId(), updateDataSource()
- Scrolling:
scrollToDate(), scrollToTask(), setScrollTop(), updateChartScrollOffset()
- Search:
search(keyword) — programmatic search across displayed columns
- Lifecycle:
refresh(), dataBind(), getRootElement(), addEventListener(), removeEventListener()
- Module injection reference table (
ej.gantt.Filter, Edit, RowDD, CriticalPath, etc.)
Quick Start Example
@* ~/Pages/Index.cshtml *@
<ejs-gantt id='Gantt' dataSource="Model.GanttDataSourceCollection" height="450px">
<e-gantt-taskfields id="TaskId"
name="TaskName"
startDate="StartDate"
endDate="EndDate"
duration="Duration"
progress="Progress"
parentID="ParentID">
</e-gantt-taskfields>
</ejs-gantt>
// ~/Pages/Index.cshtml.cs
public class IndexModel : PageModel
{
public List<GanttDataSource> GanttDataSourceCollection { get; set; }
public void OnGet()
{
GanttDataSourceCollection = GetTaskCollection();
}
private List<GanttDataSource> GetTaskCollection()
{
return new List<GanttDataSource>()
{
new GanttDataSource() { TaskId = 1, TaskName = "Project initiation", StartDate = new DateTime(2019, 04, 02), EndDate = new DateTime(2019, 04, 21) },
new GanttDataSource() { TaskId = 2, TaskName = "Identify site location", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },
new GanttDataSource() { TaskId = 3, TaskName = "Perform soil test", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },
new GanttDataSource() { TaskId = 4, TaskName = "Soil test approval", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },
new GanttDataSource() { TaskId = 5, TaskName = "Project estimation", StartDate = new DateTime(2019, 04, 02), EndDate = new DateTime(2019, 04, 21) },
new GanttDataSource() { TaskId = 6, TaskName = "Develop floor plan for estimation", StartDate = new DateTime(2019, 04, 04), Duration = 3, Progress = 50, ParentID = 5 },
new GanttDataSource() { TaskId = 7, TaskName = "List materials", StartDate = new DateTime(2019, 04, 04), Duration = 3, Progress = 50, ParentID = 5 }
};
}
}
public class GanttDataSource
{
public int TaskId { get; set; }
public string TaskName { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public int? Duration { get; set; }
public int Progress { get; set; }
public int? ParentID { get; set; }
Common Patterns
Enable Editing
<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection" height="450px">
<e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"
endDate="EndDate" duration="Duration" progress="Progress"
parentID="ParentID">
</e-gantt-taskfields>
<e-gantt-editsettings allowEditing="true" allowAdding="true"
allowDeleting="true" allowTaskbarEditing="true"
mode="Auto">
</e-gantt-editsettings>
<e-gantt-columns>
<e-gantt-column field="TaskId" isPrimaryKey="true"></e-gantt-column>
<e-gantt-column field="TaskName"></e-gantt-column>
</e-gantt-columns>
</ejs-gantt>
Enable Filtering and Sorting
<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection"
allowFiltering="true" allowSorting="true" height="450px">
<e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"
endDate="EndDate" duration="Duration" progress="Progress"
parentID="ParentID">
</e-gantt-taskfields>
</ejs-gantt>
Toolbar with Export
<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection"
toolbar="@(new List<string>() { "Add","Edit","Delete","Cancel","Update","ExpandAll","CollapseAll","ExcelExport","PdfExport" })"
allowExcelExport="true" allowPdfExport="true" height="450px">
<e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"
endDate="EndDate" duration="Duration" parentID="ParentID">
</e-gantt-taskfields>
</ejs-gantt>
1---2name: syncfusion-aspnetcore-gantt-chart3description: Implement Syncfusion ASP.NET Core Gantt Chart component (EJ2) for project management and task scheduling. Use this when working with Gantt charts, project timelines, task dependencies, or resource allocation in ASP.NET Core applications (Tag Helper/Razor Pages/MVC). This skill covers data binding, task management, editing, filtering, export, and timeline customization.4---56# Syncfusion ASP.NET Core Gantt Chart78The Syncfusion EJ2 Gantt Chart for ASP.NET Core is a powerful project management component that visualizes project schedules, task dependencies, resource allocation, and timelines using Tag Helpers.910## When to Use This Skill1112Use this skill when you need to:13- Set up and render a Gantt Chart in an ASP.NET Core application14- Bind local or remote data to the Gantt control15- Configure task fields, columns, and the chart timeline16- Enable editing (cell, dialog, taskbar), manage tasks (add/delete/update)17- Define task dependencies (FS, SS, FF, SF) and predecessors18- Assign and display resources on tasks19- Filter, sort, search, or select rows/cells20- Export to Excel or PDF21- Customize the timeline, taskbars, labels, holidays, and event markers22- Configure task scheduling modes (Auto/Manual/Custom)23- Enable undo/redo, state persistence, virtual scrolling, or critical path24- Scroll the component, configure row height, or drag-and-drop rows25- Set timezone or localise the UI for different cultures and RTL languages26- Handle events (actionBegin, actionComplete, cellEdit) or call public methods programmatically2728## Documentation and Navigation Guide2930### Getting Started31📄 **Read:** [references/getting-started.md](references/getting-started.md)32- NuGet package installation33- Tag Helper import & CDN setup34- Script manager registration35- First Gantt control (Index.cshtml + Controller)36- Mapping task fields & defining columns37- Enabling editing, filtering, sorting3839### Data Binding40📄 **Read:** [references/data-binding.md](references/data-binding.md)41- Local hierarchical data binding42- Local flat/self-referential data binding43- Remote data (URL Adaptor, OData, Web API)44- Load on demand (lazy loading child records)45- DynamicObject and ExpandoObject binding4647### Columns48📄 **Read:** [references/columns.md](references/columns.md)49- Defining columns and field mapping50- Custom column headers & header templates51- Column templates & value accessors52- Checkbox column, frozen columns53- Column reordering, resizing, spanning54- Responsive columns, WBS column, column menu5556### Managing Tasks (Editing)57📄 **Read:** [references/managing-tasks.md](references/managing-tasks.md)58- IsPrimaryKey requirement for CRUD59- Cell editing, dialog editing, taskbar editing60- Adding and deleting tasks61- Indent / outdent tasks62- Splitting and merging tasks63- Server-side CRUD persistence64- Edit validation and error handling6566### Task Dependencies67📄 **Read:** [references/task-dependency.md](references/task-dependency.md)68- SS, SF, FS, FF relationship types69- Mapping dependency field70- Predecessor offset values71- Dependency editing via mouse drag72- Validation, error handling, parent dependencies7374### Resources75📄 **Read:** [references/resources.md](references/resources.md)76- Resource collection and field mapping77- Assigning resources to tasks78- Resource view mode79- Multi-taskbar display80- Resource customization8182### Filtering83📄 **Read:** [references/filtering.md](references/filtering.md)84- Menu filtering (column-level)85- Excel-like filtering86- Toolbar search / searching87- Filter settings and programmatic filtering8889### Sorting90📄 **Read:** [references/sorting.md](references/sorting.md)91- Enabling sorting, multi-column sort92- Initial sort configuration93- Programmatic sort / clear sort9495### Timeline96📄 **Read:** [references/timeline.md](references/timeline.md)97- Top tier and bottom tier configuration98- Timeline view modes (Hour, Day, Week, Month, Year)99- Custom timeline units and formats100- Timeline template101- Infinite timeline scrolling102- Zooming in and out103104### Task Scheduling105📄 **Read:** [references/task-scheduling.md](references/task-scheduling.md)106- Auto, Manual, Custom scheduling modes107- Duration units (day, hour, minute, week, month)108- Unscheduled tasks109- Task constraints (ALAP, ASAP, FNLT, SNLT, MSO, MFO)110111### Baseline112📄 **Read:** [references/baseline.md](references/baseline.md)113- Baseline feature overview and use cases114- Mapping baseline date fields (baselineStartDate, baselineEndDate, baselineDuration)115- Enabling baseline display with renderBaseline and customizing baselineColor116- Rendering baseline milestones with explicit zero duration117- CSS styling of baseline bars118- Baseline templates and dynamic customization119- Multiple baseline rendering for comparing multiple planning phases120121### Selection122📄 **Read:** [references/selection.md](references/selection.md)123- Row selection and cell selection124- Single/multiple selection modes125- Programmatic selection126127### Scrolling128📄 **Read:** [references/scrolling.md](references/scrolling.md)129- Configure component `height` and `width` to enable scrollbars130- Responsive sizing with `100%` and parent container height requirements131- Programmatic timeline scroll via `scrollToDate()`132- Set vertical scroll with `ganttObj.ganttChartModule.scrollObject.setScrollTop()`133134### Rows135📄 **Read:** [references/rows.md](references/rows.md)136- Configure global `rowHeight` and per-row expand state via `taskFields.expandState`137- Collapse all parent tasks at load with `collapseAllParentTasks`138- Customize row appearance with `rowDataBound` and `queryTaskbarInfo`139- Row spanning via `queryCellInfo.rowSpan` and clip modes for overflow140141### Row Drag And Drop142📄 **Read:** [references/row-drag-and-drop.md](references/row-drag-and-drop.md)143- Enable row reordering with `allowRowDragAndDrop` and `selectionSettings.type = "Multiple"` for multi-drag144- Allow taskbar-based drag with `allowTaskbarDragAndDrop` and edit mode `Auto`145- Lifecycle events: `rowDragStartHelper`, `rowDragStart`, `rowDrag`, `rowDrop`146- Programmatic reordering via `reorderRows(fromIndexes, toIndex, position)`147148### Timezone149📄 **Read:** [references/timezone.md](references/timezone.md)150- Set `timezone` (e.g., `UTC`, `America/New_York`) to normalise displayed dates across clients151- CRUD operations respect configured timezone and convert for server persistence152- Utility methods: `ej.schedule.Timezone().offset()`, `convert()`, and `remove()` for programmatic conversions153154### Globalization155📄 **Read:** [references/globalization.md](references/globalization.md)156- Localize UI text via `locale` and `ej.base.L10n.load()` translation objects157- Internationalization: load CLDR files to format dates and numbers per culture158- Enable RTL layout with `enableRtl="true"` for right-to-left languages159160### Export (Excel & PDF)161📄 **Read:** [references/export.md](references/export.md)162- Excel export with column and data customization163- PDF export with themes and custom columns164- Exporting multiple Gantt charts to a single PDF165166### Toolbar167📄 **Read:** [references/toolbar.md](references/toolbar.md)168- Built-in toolbar items (Add, Edit, Delete, Search, ExpandAll, CollapseAll, ExcelExport, PdfExport, ZoomIn, ZoomOut, ZoomToFit, UndoRedo)169- Custom toolbar items and click handling170- Enabling/disabling toolbar items programmatically171172### Context Menu173📄 **Read:** [references/context-menu.md](references/context-menu.md)174- Enable context menu with `enableContextMenu="true"`175- Built-in context menu items for CRUD operations176- Custom context menu items and click event handling177178### Taskbar179📄 **Read:** [references/taskbar.md](references/taskbar.md)180- Taskbar templates using `text/x-jsrender` (`taskbarTemplate`, `parentTaskbarTemplate`, `milestoneTemplate`)181- Control taskbar size with `taskbarHeight` (must be less than `rowHeight`)182- Dynamic taskbar/progress styling with `queryTaskbarInfo` (e.g., `taskbarBgColor`, `progressBarBgColor`, `isCritical`)183- Change the drag gripper icon via CSS overrides184- Customize dependency connector lines with `connectorLineWidth` and `connectorLineBackground`185- Multi-taskbar display in project view using `enableMultiTaskbar="true"`186187### Labels and Tooltips188📄 **Read:** [references/labels-and-tooltips.md](references/labels-and-tooltips.md)189- Left/right/inside label templates on taskbars190- Taskbar tooltip customization via `tooltipSettings`191- Connector line and baseline tooltips192193### Event Markers194📄 **Read:** [references/event-markers.md](references/event-markers.md)195- Add striplines/event markers with `<e-gantt-eventmarkers>`196- Custom label and CSS class per marker197- Dynamic event markers198199### Critical Path200📄 **Read:** [references/critical-path.md](references/critical-path.md)201- Enable critical path highlighting with `enableCriticalPath="true"`202- Critical path rendering and customization203- Critical slack value configuration204205### Splitter206📄 **Read:** [references/splitter.md](references/splitter.md)207- Configure grid/chart pane ratio with `splitterSettings`208- Set splitter position by column index, percentage, or pixel209- Programmatic splitter position update via `setSplitterPosition()`210211### Undo and Redo212📄 **Read:** [references/undo-redo.md](references/undo-redo.md)213- Enable undo/redo via toolbar items or `Ctrl+Z` / `Ctrl+Y`214- Configure undo-redo history size (`undoRedoStepsCount`)215- Supported actions and programmatic `undo()` / `redo()` calls216217### State Persistence218📄 **Read:** [references/state-persistence.md](references/state-persistence.md)219- Enable persistence with `enablePersistence="true"` (saves to `localStorage`)220- Persisted properties: filter, sort, column width, scroll position, zoom level221- Clearing persisted state programmatically222223### Immutable Mode224📄 **Read:** [references/immutable-mode.md](references/immutable-mode.md)225- Enable `enableImmutableMode="true"` to prevent re-render of unchanged rows226- Performance benefit for large data sets with frequent updates227- Limitations and usage patterns228229### Virtual Scroll230📄 **Read:** [references/virtual-scroll.md](references/virtual-scroll.md)231- Enable row virtualization with `enableVirtualization="true"`232- Enable timeline virtualization with `enableTimelineVirtualization="true"`233- Performance characteristics and known limitations234235### Loading Animation236📄 **Read:** [references/loading-animation.md](references/loading-animation.md)237- Built-in spinner shown during data load238- Show/hide loading indicator programmatically via `showSpinner()` / `hideSpinner()`239- Custom loading template240241### Style and Appearance242📄 **Read:** [references/style-and-appearance.md](references/style-and-appearance.md)243- Applying Syncfusion themes (Bootstrap, Material, Fabric, High Contrast)244- CSS class overrides for taskbars, grid rows, and header245- `queryTaskbarInfo` event for per-task styling246247### Events248📄 **Read:** [references/events.md](references/events.md)249- Wire events via camelCase Tag Helper attributes (`actionBegin`, `actionComplete`, `actionFailure`)250- `actionBegin` — cancel-able hook before every CRUD, filter, sort, zoom, and dependency action251- `actionComplete` — post-action callback with `requestType` reference table252- `cellEdit` — prevent specific cells or rows from entering edit mode253- `beforeTooltipRender` — customise or suppress any tooltip dynamically254- Row/cell selection events: `rowSelecting`, `rowSelected`, `rowDeselecting`, `rowDeselected`, `cellSelecting`, `cellSelected`255- Export events: `beforeExcelExport`, `beforePdfExport`, `excelExportComplete`, `pdfExportComplete`256257### Public Methods258📄 **Read:** [references/methods.md](references/methods.md)259- Data access: `getCurrentViewData()`, `getRecordByID()`, `getTaskByUniqueID()`, `getRowByID()`260- Row expand/collapse: `expandAll()`, `collapseAll()`, `expandByID()`, `collapseByID()`, `expandByIndex()`261- Task utilities: `changeTaskMode()`, `convertToMilestone()`, `updateTaskId()`, `updateDataSource()`262- Scrolling: `scrollToDate()`, `scrollToTask()`, `setScrollTop()`, `updateChartScrollOffset()`263- Search: `search(keyword)` — programmatic search across displayed columns264- Lifecycle: `refresh()`, `dataBind()`, `getRootElement()`, `addEventListener()`, `removeEventListener()`265- Module injection reference table (`ej.gantt.Filter`, `Edit`, `RowDD`, `CriticalPath`, etc.)266267## Quick Start Example268269```cshtml270@* ~/Pages/Index.cshtml *@271<ejs-gantt id='Gantt' dataSource="Model.GanttDataSourceCollection" height="450px">272 <e-gantt-taskfields id="TaskId"273 name="TaskName"274 startDate="StartDate"275 endDate="EndDate"276 duration="Duration"277 progress="Progress"278 parentID="ParentID">279 </e-gantt-taskfields>280</ejs-gantt>281```282283```csharp284// ~/Pages/Index.cshtml.cs285public class IndexModel : PageModel286{287 public List<GanttDataSource> GanttDataSourceCollection { get; set; }288289 public void OnGet()290 {291 GanttDataSourceCollection = GetTaskCollection();292 }293294 private List<GanttDataSource> GetTaskCollection()295 {296 return new List<GanttDataSource>()297 {298 new GanttDataSource() { TaskId = 1, TaskName = "Project initiation", StartDate = new DateTime(2019, 04, 02), EndDate = new DateTime(2019, 04, 21) },299 new GanttDataSource() { TaskId = 2, TaskName = "Identify site location", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },300 new GanttDataSource() { TaskId = 3, TaskName = "Perform soil test", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },301 new GanttDataSource() { TaskId = 4, TaskName = "Soil test approval", StartDate = new DateTime(2019, 04, 02), Duration = 4, Progress = 50, ParentID = 1 },302 new GanttDataSource() { TaskId = 5, TaskName = "Project estimation", StartDate = new DateTime(2019, 04, 02), EndDate = new DateTime(2019, 04, 21) },303 new GanttDataSource() { TaskId = 6, TaskName = "Develop floor plan for estimation", StartDate = new DateTime(2019, 04, 04), Duration = 3, Progress = 50, ParentID = 5 },304 new GanttDataSource() { TaskId = 7, TaskName = "List materials", StartDate = new DateTime(2019, 04, 04), Duration = 3, Progress = 50, ParentID = 5 }305 };306 }307}308309public class GanttDataSource310{311 public int TaskId { get; set; }312 public string TaskName { get; set; }313 public DateTime StartDate { get; set; }314 public DateTime EndDate { get; set; }315 public int? Duration { get; set; }316 public int Progress { get; set; }317 public int? ParentID { get; set; }318```319320## Common Patterns321322### Enable Editing323```cshtml324<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection" height="450px">325 <e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"326 endDate="EndDate" duration="Duration" progress="Progress"327 parentID="ParentID">328 </e-gantt-taskfields>329 <e-gantt-editsettings allowEditing="true" allowAdding="true"330 allowDeleting="true" allowTaskbarEditing="true"331 mode="Auto">332 </e-gantt-editsettings>333 <e-gantt-columns>334 <e-gantt-column field="TaskId" isPrimaryKey="true"></e-gantt-column>335 <e-gantt-column field="TaskName"></e-gantt-column>336 </e-gantt-columns>337</ejs-gantt>338```339340### Enable Filtering and Sorting341```cshtml342<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection"343 allowFiltering="true" allowSorting="true" height="450px">344 <e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"345 endDate="EndDate" duration="Duration" progress="Progress"346 parentID="ParentID">347 </e-gantt-taskfields>348</ejs-gantt>349```350351### Toolbar with Export352```cshtml353<ejs-gantt id="Gantt" dataSource="Model.GanttDataSourceCollection"354 toolbar="@(new List<string>() { "Add","Edit","Delete","Cancel","Update","ExpandAll","CollapseAll","ExcelExport","PdfExport" })"355 allowExcelExport="true" allowPdfExport="true" height="450px">356 <e-gantt-taskfields id="TaskId" name="TaskName" startDate="StartDate"357 endDate="EndDate" duration="Duration" parentID="ParentID">358 </e-gantt-taskfields>359</ejs-gantt>360```