New to KendoReactStart a free 30-day trial

GanttProps

Interface

Represents the props of the KendoReact Gantt component.

Definition

Package:@progress/kendo-react-gantt

Properties

Provides view components as children. The Gantt renders the currently selected view.

Adds custom CSS classes to the Gantt component.

columnMenu?

ComponentType​<any>

The component to render as the column menu.

columnMenuFilter?

CompositeFilterDescriptor[]

The descriptors by which the data is filtered in the column menu.

A collection of GanttColumnProps for creating columns.

Sets the view that shows first when the Gantt loads. You can choose from:

  • day
  • week (Default)
  • month
  • year
Default:

"week"

Provides dependency data for the Gantt chart. Dependencies appear as visual connections between tasks.

Maps field names for reading dependency data from your data source.

filter?

FilterDescriptor[]

The descriptors by which the data is filtered (more information and examples). This affects the values and buttons in the FilterRow of the Gantt.

If set to true, the user can use dedicated shortcuts to interact with the Gantt. By default, navigation is disabled and the Gantt content is accessible in the normal tab sequence.

Default:

false

noRecords?

ReactElement​<GanttNoRecordsProps, string | JSXElementConstructor​<any>>

Represents the component that will be rendered when the data property of the Gantt is empty or undefined.

Fires when the user clicks the add task button.

Parameters:eventGanttAddClickEvent

Fires when the user changes the column menu filter.

Fires when the user reorders columns.

Parameters:eventGanttColumnReorderEvent

Fires when the user resizes a column.

Parameters:eventGanttColumnResizeEvent

Fires when the data state changes.

Fires when the user creates a dependency by connecting two tasks.

Fires when the user clicks the expand or collapse icon on a row.

Parameters:eventGanttExpandChangeEvent

Fires when the Gantt filter is modified through the UI (more information and examples). You need to handle the event yourself and filter the data.

Parameters:eventGanttFilterChangeEvent

Fires when the user clicks the checkbox in a column header.

Fires when the user presses any keyboard key.

Parameters:eventGanttKeyDownEvent

Fires when the user clicks a row.

Parameters:eventGanttRowClickEvent

Fires when the user right-clicks on a row.

Parameters:eventGanttRowContextMenuEvent

Fires when the user double-clicks a row.

Parameters:eventGanttRowDoubleClickEvent

Fires when the user selects or deselects rows or cells.

Fires when the sorting of the Gantt is changed (see example). You need to handle the event yourself and sort the data.

Parameters:eventGanttSortChangeEvent

Fires when the user clicks a task.

Parameters:eventGanttTaskClickEvent

Fires when the user right-clicks on a task.

Fires when the user double-clicks a task.

Fires when the user clicks the remove button on a task.

Fires when the user selects a different view. Use this to control which view is shown.

Parameters:argsGanttViewChangeEvent

If set to true, the user can reorder columns by dragging their header cells.

Default:

false

resizable?

boolean

If set to true, the user can resize columns by dragging the edges (resize handles) of their header cells.

Default:

false

row?

ComponentType​<GanttRowProps>

The Gantt row component.

Sets the height of all rows in pixels. All rows have the same height.

Default:

50

The Gantt selectable settings.

sort?

SortDescriptor[]

The descriptors by which the data is sorted. Applies the sorting styles and buttons to the affected columns.

sortable?

SortSettings

Enables sorting (see example).

style?

CSSProperties

Sets custom styles for the Gantt component.

Provides task data for the Gantt chart. Tasks appear as visual bars in the timeline.

Maps field names for reading task data from your data source.

timezone?

string

Sets the timezone for displaying dates and times in the Gantt chart. For example, Europe/Sofia.

toolbar?

{ addTaskButton: boolean }

Configures the toolbar options. You can enable the add task button.

view?

string

Controls which view is currently shown. The value must match the title property of a view.

webMcp?

boolean | WebMcpProps

Enables Web MCP tool registration for the Gantt component. When set, browser-native AI agent tools are registered via navigator.modelContext.registerTool() (Chrome 146+).