Questions about the Use of "editable_resource_diagram

When I enable the “editable_resource_diagram” property, task assignments in the resource view become editable. Is there a way to control which task assignments can be edited and which ones cannot be edited?

Hello,
If you want to customize how the feature of editing resource assignment works, you need to use the resource_cell_value template and return the specific HTML elements that allow editing assignments:
https://docs.dhtmlx.com/gantt/api__gantt_resource_cell_value_template.html

Here is an example:
https://snippet.dhtmlx.com/libwuna4

The template is called for all cells in the resource timeline. It means that you can return the elements that won’t be edited for the tasks you need.
For example, if you add the following condition, you will be able to edit assignments for all tasks except Interior Office:

if (resource.$role === "task" && resource.$task_id != 5) {
1 Like