All docs
V20.2
21.1
20.2
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
Box
Map
Vue

editing

Configures edit properties.

Type:

Object

The UI component allows users to add, modify and delete tasks, resources and dependencies. Set the enabled property to true to enable edit functionality.

NOTE
Make sure that your data sources (tasks, resources and dependencies) support edit actions.

View Demo

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            //...
        }
    });
}); 

allowDependencyAdding

Specifies whether a user can add dependencies.

Type:

Boolean

Default Value: true

DevExtreme Gantt - Dependency

To add a dependency between two tasks, use the insertDependency method or move the mouse pointer over the preceding task's edge (marked with a circle) and drag the connector to the edge of the next task.

"Finish-To-Start" dependency between tasks:

DevExtreme Gantt - Insert Dependency

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowDependencyAdding: false, 
            //...
        }
    });
}); 
See Also

allowDependencyDeleting

Specifies whether a user can delete dependencies.

Type:

Boolean

Default Value: true

DevExtreme Gantt - Dependency

Select a dependency and click Delete to delete this dependency.

DevExtreme Gantt - Delete Dependency

The widget displays a delete confirmation message when you want to remove a dependency.

[DevExtreme Gantt - Confirm Dependency Deletion

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowDependencyDeleting: false, 
            //...
        }
    });
}); 
See Also

allowResourceAdding

Specifies whether a user can add resources.

Type:

Boolean

Default Value: true

DevExtreme Gantt Chart - Task Resources

Click the "Edit Resources" button in the "Task Details" dialog window to modify the list of available resources.

DevExtreme Gantt Chart - Open Resource Manager

DevExtreme Gantt Chart - Resource Manager

Set the allowResourceAdding option to false to disable the Add button in the "Resource Manager" dialog.

DevExtreme Gantt Chart - Resource Manager

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowResourceAdding: false, 
            //...
        }
    });
}); 

Note that you cannot open the "Resource Manager" dialog if the allowResourceAdding and allowResourceDeleting options are set to false.

DevExtreme Gantt Chart - Disabled Resource Manager

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowResourceAdding: false, 
            allowResourceDeleting: false, 
            //...
        }
    });
}); 
See Also

allowResourceDeleting

Specifies whether a user can delete resources.

Type:

Boolean

Default Value: true

DevExtreme Gantt Chart - Task Resources

Click the "Edit Resources" button in the "Task Details" dialog window to modify the list of available resources.

DevExtreme Gantt Chart - Edit Task Resources

DevExtreme Gantt Chart - Resource Manager

Set the allowResourceDeleting option to false to disable the Delete button in the "Resource Manager" dialog.

DevExtreme Gantt Chart - Resource Manager

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowResourceDeleting: false, 
            //...
        }
    });
}); 

Note that you cannot open the "Resource Manager" dialog if the allowResourceDeleting and allowResourceAdding options are set to false.

DevExtreme Gantt Chart - Disabled Resource Manager

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowResourceAdding: false, 
            allowResourceDeleting: false, 
            //...
        }
    });
}); 
See Also

allowResourceUpdating

For internal use only.

Type:

Boolean

Default Value: true

allowTaskAdding

Specifies whether a user can add tasks.

Type:

Boolean

Default Value: true

Right-click a task or a cell in the Gantt chart and select the "Add" context menu item to add a new task or subtask.

DevExtreme Gantt Chart - Add Tasks

  • "New Task" - Appends a new task at the same level as the selected cell/task.

    DevExtreme Gantt Chart - Add Task

  • "New Subtask" - Adds a child task to the selected cell/task.

    DevExtreme Gantt Chart - Add Subtask

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowTaskAdding: false, 
            //...
        }
    });
}); 
See Also

allowTaskDeleting

Specifies whether a user can delete tasks.

Type:

Boolean

Default Value: true

Right-click a task and select the 'Delete Task' context menu item to remove a task.

DevExtreme Gantt Chart - Delete Task

The alert message notifies users that deleting a task creates a gap in the workflow between the preceding and subsequent tasks.

DevExtreme Gantt Chart - Delete Task Confirmation

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowTaskDeleting: false, 
            //...
        }
    });
}); 
See Also

allowTaskResourceUpdating

Specifies whether users can update a task's resources.

Type:

Boolean

Default Value: true

Double-click a task or use the context menu to open the "Task Details" dialog window to manage resources. Click the "Resources" field to open a drop-down list with the available resources. Select a resource to link it to the edited task.

DevExtreme Gantt Chart - Assign Resources to Task

Note that you can assign multiple resources to a task.

DevExtreme Gantt Chart - Assign Multiple Resources to Task

Click the cross icon (on the right side of the resource) to remove the resource from the task.

DevExtreme Gantt Chart - Remove Resources from Task

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowTaskResourceUpdating: false, 
            //...
        }
    });
}); 
See Also

allowTaskUpdating

Specifies whether a user can update tasks.

Type:

Boolean

Default Value: true

Use the "Task Details" context menu item (or double-click a task in the chart area) to invoke the popup edit form that also provides access to the "Resource Manager" dialog. Then, click OK to get task values from the edit form and save them to the database.

DevExtreme Gantt Chart - Task Details

Set the allowTaskUpdating option to false to make the "Task Details" dialog read-only.

DevExtreme Gantt - Read-Only Task Details Dialog

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            allowTaskUpdating: false, 
            //...
        }
    });
}); 
See Also

enabled

Specifies whether a user can edit tasks, resources and dependencies.

Type:

Boolean

Default Value: false

jQuery
index.js
$(function() {
    $("#gantt").dxGantt({
        editing: {
            enabled: true, 
            //...
        }
    });
});