Disable editing options on gantt


#1

Hi,

it is possible to disable possibility of move blocks on gantt chart?
I want to have static chart - without possibility of change date by drag and drop.

The same question is for progress - how I can disable it?


#2

Hello,

it is possible to disable possibility of move blocks on gantt chart?
I want to have static chart - without possibility of change date by drag and drop.

Yes, there is such a feature, and it is called the “Read-only mode”:
https://docs.dhtmlx.com/gantt/desktop__readonly_mode.html
In the following example you can toggle the read-only mode.:
http://snippet.dhtmlx.com/ed0a38df8

The same question is for progress - how I can disable it?

You can hide the progress drag:
https://docs.dhtmlx.com/gantt/api__gantt_drag_progress_config.html
Or you can just disable dragging it by specifying that in the onBeforeTaskDrag event handler:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskdrag_event.html
Here are the examples:
http://snippet.dhtmlx.com/269c3b1b7
http://snippet.dhtmlx.com/4ee538e54