JavaScript/jQuery Gantt Options
An object that defines the Gantt UI component's configuration properties.
See Also
accessKey
Specifies the shortcut key that sets focus on the UI component.
The value of this property will be passed to the accesskey attribute of the HTML element that underlies the UI component.
activeStateEnabled
Specifies whether the UI component changes its state as a result of user interaction.
The UI component switches to the active state when users press down the primary mouse button. When this property is set to true, the CSS rules for the active state apply. You can change these rules to customize the component.
Use this property when you display the component on a platform whose guidelines include the active state change for UI components.
columns[]
An array of columns in the Gantt.
The columns property accepts an array of columns. To configure a column, use a dxTreeListColumn object or specify a data source field (as a string value) to which the column is bound.
The Gantt UI component does not support:
data sorting
column templates
dependencies
Configures dependencies.
Dependencies specify the relationships between tasks. The following image illustrates how the Gantt displays dependencies in the chart:

The Gantt UI component supports the following dependency types:
Finish to Start (FS) - The predecessor task's endpoint specifies the successor task's start point.
Start to Start (SS) - The predecessor task's start point specifies the successor task's start point.
Finish to Finish (FF) - The predecessor task's end point specifies the successor task's end point.
Start to Finish (SF) - The predecessor task's start point specifies the successor task's end point.
In a database, you can use any of the following formats (digit or string) to store dependency types:
| Dependency Type | Supported Values |
|---|---|
| Finish to Start (FS) | 0, "0", "FS", "fs" |
| Start to Start (SS) | 1, "1", "SS", "ss" |
| Finish to Finish (FF) | 2, "2", "FF", "ff" |
| Start to Finish (SF) | 3, "3", "SF", "sf" |
Use the dataSource property to bind the UI component to a data source, which contains information about dependency types. If the field names in your data source differ from the 'id', 'type', 'predecessorId' and 'successorId' default names, use the keyExpr, typeExpr properties to map data fields.
See Also
disabled
Specifies whether the UI component responds to user interaction.
editing
Configures edit properties.
The UI component allows users to add, modify and delete tasks, resources and dependencies. Set the enabled property to true to enable edit functionality.
See Also
elementAttr
Specifies the global attributes to be attached to the UI component's container element.
- $(function(){
- $("#ganttContainer").dxGantt({
- // ...
- elementAttr: {
- id: "elementId",
- class: "class-name"
- }
- });
- });
endDateRange
Specifies the end date of the date interval in the Gantt chart.
filterRow
Configures filter row settings.
Users can enter a value into the filter row to filter Gantt data. Set the filterRow.visible property to true to display the filter row.

Each cell in the filter row contains a magnifier icon. Click a column's magnifier icon to select a filter operation available for the column. Use the selectedFilterOperation property to specify the default filter operation for a column's filter row.
![]()
To hide a filter row cell for an individual column, set the column’s allowFiltering property to false.
firstDayOfWeek
Specifies the first day of a week.
The property's value can be from 0 to 6.
- 0 - Sunday
- 1 - Monday
- 2 - Tuesday
- 3 - Wednesday
- 4 - Thursday
- 5 - Friday
- 6 - Saturday
The culture settings specify the property's default value.
focusStateEnabled
Specifies whether the UI component can be focused using keyboard navigation.
headerFilter
Configures the header filter settings.
The header filter allows users to filter values in an individual column. The header filter is a popup window that contains all unique values of a column. A click on the filter icon invokes the header filter.

Set the headerFilter.visible property to true to display filter icons for all columns. To hide the filter icon for an individual column, set the column’s allowHeaderFiltering property to false.
See Also
height
Specifies the UI component's height.
This property accepts a value of one of the following types:
Number
The height in pixels.String
A CSS-accepted measurement of height. For example,"55px","20vh","80%","inherit".Function (deprecated since v21.2)
Refer to the W0017 warning description for information on how you can migrate to viewport units.
hint
Specifies text for a hint that appears when a user pauses on the UI component.
hoverStateEnabled
Specifies whether the UI component changes its state when a user pauses on it.
onContentReady
A function that is executed when the UI component is rendered and each time the component is repainted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only when using Knockout. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only when using Knockout.
onContextMenuPreparing
A function that is executed before the context menu is rendered.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel showing the context menu. | |
| component | The UI component's instance. | |
| data | any | Data of the right-clicked task or dependency. |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| items | Items to be displayed in the context menu. | |
| targetKey | any | The key of the right-clicked task or dependency. |
| targetType | The type of right-clicked task or dependency. |
Allows you to cancel showing the context menu.
The UI component's instance.
Data of the right-clicked task or dependency.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
Items to be displayed in the context menu.
The key of the right-clicked task or dependency.
The type of right-clicked task or dependency.
onCustomCommand
A function that is executed after a custom command item was clicked. Allows you to implement a custom command's functionality.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component instance's name. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| name | The name of the clicked item. |
The UI component instance's name.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The name of the clicked item.
See Also
onDependencyDeleted
A function that is executed when a dependency is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted dependency. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted dependency. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted dependency.
Model data. Available only if you use Knockout.
The values of the deleted dependency.
onDependencyDeleting
A function that is executed before a dependency is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the dependency's deletion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted dependency. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted dependency. |
Allows you to cancel the dependency's deletion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted dependency.
Model data. Available only if you use Knockout.
The values of the deleted dependency.
onDependencyInserted
A function that is executed when a dependency is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the inserted dependency. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted dependency. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the inserted dependency.
Model data. Available only if you use Knockout.
The values of the inserted dependency.
onDependencyInserting
A function that is executed before a dependency is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the dependency's insertion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted dependency. |
Allows you to cancel the dependency's insertion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
The values of the inserted dependency.
onDisposing
A function that is executed before the UI component is disposed of.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
onInitialized
A function used in JavaScript frameworks to save the UI component instance.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
See Also
onOptionChanged
A function that is executed after a UI component property is changed.
Information about the event.
| Name | Type | Description |
|---|---|---|
| model | any | Model data. Available only if you use Knockout. |
| fullName | The path to the modified property that includes all parent properties. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The UI component's instance. | |
| name | The modified property if it belongs to the first level. Otherwise, the first-level property it is nested into. | |
| value | any | The modified property's new value. |
Model data. Available only if you use Knockout.
The path to the modified property that includes all parent properties.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The UI component's instance.
The modified property if it belongs to the first level. Otherwise, the first-level property it is nested into.
The modified property's new value.
The following example shows how to subscribe to component property changes:
- $(function() {
- $("#ganttContainer").dxGantt({
- // ...
- onOptionChanged: function(e) {
- if(e.name === "changedProperty") {
- // handle the property change here
- }
- }
- });
- });
onResourceAssigned
A function that is executed when a resource is assigned to a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the inserted resource assignment. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the processed resource and task. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the inserted resource assignment.
Model data. Available only if you use Knockout.
The values of the processed resource and task.
onResourceAssigning
A function that is executed before a resource is assigned to a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the resource assignment. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the processed resource and task. |
Allows you to cancel the resource assignment.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
The values of the processed resource and task.
onResourceDeleted
A function that is executed when a resource is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted resource. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted resource. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted resource.
Model data. Available only if you use Knockout.
The values of the deleted resource.
onResourceDeleting
A function that is executed before a resource is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the resource deletion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted resource. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted resource. |
Allows you to cancel the resource deletion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted resource.
Model data. Available only if you use Knockout.
The values of the deleted resource.
onResourceInserted
A function that is executed when a resource is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the inserted resource. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted resource. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the inserted resource.
Model data. Available only if you use Knockout.
The values of the inserted resource.
onResourceInserting
A function that is executed before a resource is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the resource insertion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted resource. |
Allows you to cancel the resource insertion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
The values of the inserted resource.
onResourceManagerDialogShowing
A function that is executed before the Resource Manager dialog is shown.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the Resource Manager dialog showing. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| values | Array<any> | The resources. |
Allows you to cancel the Resource Manager dialog showing.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Array<any>
The resources.
onResourceUnassigned
A function that is executed when a resource is unassigned from a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted resource assignment. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the processed resource and task. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted resource assignment.
Model data. Available only if you use Knockout.
The values of the processed resource and task.
onResourceUnassigning
A function that is executed before a resource is unassigned from a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the resource unassignment. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the resource. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the processed resource and task. |
Allows you to cancel the resource unassignment.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the resource.
Model data. Available only if you use Knockout.
The values of the processed resource and task.
onSelectionChanged
A function that is executed after users select a task or clear its selection.
Information about the event that caused the function's execution.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
| selectedRowKey | any | The key of the row whose selection state was changed. |
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
The key of the row whose selection state was changed.
onTaskClick
A function that is executed when a user clicks a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| data | any | The task data. |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| key | any | The task key. |
| model | any | Model data. Available only if you use Knockout. |
The UI component's instance.
The task data.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
The task key.
Model data. Available only if you use Knockout.
onTaskDblClick
A function that is executed when a user double-clicks a task.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the resource unassignment. | |
| component | The UI component's instance. | |
| data | any | The task data. |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| event | Event (jQuery or EventObject) | The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery. |
| key | any | The task key. |
| model | any | Model data. Available only if you use Knockout. |
Allows you to cancel the resource unassignment.
The UI component's instance.
The task data.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Event (jQuery or EventObject)
The event that caused the function to execute. It is an EventObject or a jQuery.Event when you use jQuery.
The task key.
Model data. Available only if you use Knockout.
onTaskDeleted
A function that is executed when a task is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted task. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted task. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted task.
Model data. Available only if you use Knockout.
The values of the deleted task.
onTaskDeleting
A function that is executed before a task is deleted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the task deletion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the deleted task. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the deleted task. |
Allows you to cancel the task deletion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the deleted task.
Model data. Available only if you use Knockout.
The values of the deleted task.
onTaskEditDialogShowing
A function that is executed before the edit dialog is shown.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the edit dialog showing. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| hiddenFields | An array of hidden fields. | |
| key | any | The task key. |
| model | any | Model data. Available only if you use Knockout. |
| readOnlyFields | An array of read-only fields. | |
| values | any | The task values. |
Allows you to cancel the edit dialog showing.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
An array of hidden fields.
The task key.
Model data. Available only if you use Knockout.
An array of read-only fields.
The task values.
Note that the hiddenFields and readOnlyFields parameters affect only task fields. Use the allowTaskResourceUpdating property to hide the Resource Manager in the Task Details dialog.

See Also
onTaskInserted
A function that is executed when a task is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the inserted task. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted task. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the inserted task.
Model data. Available only if you use Knockout.
The values of the inserted task.
onTaskInserting
A function that is executed before a task is inserted.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the task insertion. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The values of the inserted task. |
Allows you to cancel the task insertion.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
Model data. Available only if you use Knockout.
The values of the inserted task.
onTaskMoving
A function that is executed before a task is moved.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the task's movement. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The task key. |
| model | any | Model data. Available only if you use Knockout. |
| newValues | any | The task values after moving. |
| values | any | The task values before moving. |
Allows you to cancel the task's movement.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The task key.
Model data. Available only if you use Knockout.
The task values after moving.
The task values before moving.
onTaskUpdated
A function that is executed when a task is updated.
Information about the event.
| Name | Type | Description |
|---|---|---|
| component | The UI component's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The key of the updated task. |
| model | any | Model data. Available only if you use Knockout. |
| values | any | The task values after update. |
The UI component's instance.
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery.
The key of the updated task.
Model data. Available only if you use Knockout.
The task values after update.
onTaskUpdating
A function that is executed before a task is updated.
Information about the event.
| Name | Type | Description |
|---|---|---|
| cancel | Allows you to cancel the task update. | |
| component | The UI component's instance. | |
| element | The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| key | any | The task key. |
| model | any | Model data. Available only if you use Knockout. |
| newValues | any | The task values after update. |
| values | any | The task values before update. |
Allows you to cancel the task update.
The UI component's instance.
The UI component's container. It is an HTML Element or a jQuery Element when you use jQuery.
The task key.
Model data. Available only if you use Knockout.
The task values after update.
The task values before update.
resourceAssignments
Configures resource assignments.
Resource assignments define relationship between tasks and resources.
Use the dataSource property to bind the UI component to a data source, which contains resource assignments. If the field names in your data source differ from the 'id', 'resourceId' and 'taskId' default names, use the keyExpr, resourceIdExpr and/or taskIdExpr properties to map data fields.
See Also
resources
Configures task resources.
You can add resources to a project and assign them to tasks. Resources can be people responsible for tasks, equipment, materials, etc. The Gantt displays resources as labels on the right of the tasks.

Use the dataSource property to bind the UI component to a data source, which contains resources. If the field names in your data source differ from the 'id', 'text' and 'color' default names, use the keyExpr, textExpr and/or colorExpr properties to map data fields.
See Also
scaleType
Specifies the zoom level of tasks in the Gantt chart.
The scaleType property specifies the zoom level for tasks when the Gantt UI component is initialized or when you call the option() method.
If the scaleType property is set to "auto", the UI component is scaled to fit all tasks in the Gantt chart's visible area.
To browse tasks across various levels of detail in real time, hold the CTRL key and scroll the mouse wheel to zoom (in or out).
scaleTypeRange
Configures zoom range settings.
Use the scaleTypeRange.min and scaleTypeRange.max properties to limit zoom in the Gantt chart.
See Also
selectedRowKey
Allows you to select a row or determine which row is selected.
showRowLines
Specifies whether to show/hide horizontal faint lines that separate tasks.
sorting
Configures sort settings.
Users can sort Gantt data by a single or multiple columns. Use the mode option to specify the sort mode.
Single Mode. Click a column header to sort data by this column. Subsequent clicks on the same header reverse the sort order.

Multiple Mode. Hold Shift and click column headers to sort data by multiple columns. Subsequent clicks on the same header with the Shift key pressed reverse the column's sort order. Set the showSortIndexes option to true to show the column sort index in the header.

To disable sorting for a particular column, set the column’s allowSorting option to false.
To clear sorting for a column, hold Ctrl and click the column header. You can also use the column header’s context menu to specify the column’s sort settings and clear sorting. Use the ascendingText, descendingText, and the clearText options to specify text for the corresponding context menu items.

startDateRange
Specifies the start date of the date interval in the Gantt chart.
tabIndex
Specifies the number of the element when the Tab key is used for navigating.
The value of this property will be passed to the tabindex attribute of the HTML element that underlies the UI component.
taskContentTemplate
Specifies custom content for the task.
| Name | Type | Description |
|---|---|---|
| cellSize | The size of the cell that contains the task. | |
| isMilestone | Specifies whether the task is a milestone. | |
| taskData | The processed task. | |
| taskHTML | The default HTML element of the processed task. | |
| taskPosition | The task's position. | |
| taskResources | The task's resources. | |
| taskSize | The task's size. |
The size of the cell that contains the task.
Specifies whether the task is a milestone.
The processed task.
The default HTML element of the processed task.
The task's position.
The task's resources.
The task's size.
taskProgressTooltipContentTemplate
Specifies custom content for the tooltip that displays the task's progress while the progress handler is resized in the UI.
tasks
Configures tasks.

Use the dataSource property to bind the UI component to a data source, which contains tasks. If the field names in your data source differ from default names ('id', 'parentId', 'title', 'start', 'end', 'progress', 'color'), use appropriate properties (keyExpr, parentIdExpr, etc.) to map data fields.
Note that the 'id' and 'parentId' fields should not have the same value.
See Also
taskTimeTooltipContentTemplate
Specifies custom content for the tooltip that displays the task's start and end time while the task is resized in the UI.
taskTitlePosition
Specifies a task's title position.
Titles can be displayed "inside" or "outside" the the task. Set the position to "none" to hide the title.

taskTooltipContentTemplate
Specifies custom content for the task tooltip.
The task tooltip's container. It is an HTML Element or a jQuery Element when you use jQuery.
Note that the container parameter contains the content of the default tooltip. You should clear the container parameter to specify custom content for the task tooltip.
width
Specifies the UI component's width.
This property accepts a value of one of the following types:
Number
The width in pixels.String
A CSS-accepted measurement of width. For example,"55px","20vw","80%","auto","inherit".Function (deprecated since v21.2)
Refer to the W0017 warning description for information on how you can migrate to viewport units.






