Gantt task configuration

Is there a possibility to make a task readonly but at the same time being able to attach links to it and make it dependable on other tasks.

If Iset the task to readonly = true, I am not able to use the dependency creation.
if I set the task to readonly = false and attach onBeforeTaskDragEvent it works but when u hover the mouse to the edge of the task the mouse cursor changes to draggable and the users get confused.

any solution?

Hello,

when u hover the mouse to the edge of the task the mouse cursor changes to draggable and the users get confused.

You can use gantt.config.drag_resize property with false value that doesn’t allow to resize tasks by drag-and-drop. There is an article about this property:
https://docs.dhtmlx.com/gantt/api__gantt_drag_resize_config.html
Also, the easiest way to forbid to move tasks by drag-and-drop is to use gantt.config.drag_move = false; There is an article about it:
https://docs.dhtmlx.com/gantt/api__gantt_drag_move_config.html
In addition, if the task is not set to readonly, it can be edited using a lightbox or inline editors. You can disable opening the lightbox of the task with the onBeforeLightbox event by returning false. There is an article about this event:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforelightbox_event.html
To cancel opening the inline editor, use the onBeforeEditStart event by returning false. You can read about it here:
https://docs.dhtmlx.com/gantt/desktop__inline_editors_ext.html#events
Please check the example of how it might be implemented without readonly:
https://snippet.dhtmlx.com/zeit6jdw