Read-only task

Hi!

It seems that you can make the entire gantt read-only but can you mark individual or list of tasks read-only?

Thanks!

Hello,
there is no config for that, but you may prevent editing of particular task(or tasks) using events that provided by dhtmlxGantt API

gantt.attachEvent("onBeforeTaskDrag", function(id, mode, e){ if(id == someReadonlyId) return false; else return true; }); gantt.attachEvent("onBeforeLightbox", function(id) { if(id == someReadonlyId) return false; else return true; });
Or

function isEditableTask(id){ return id != someReadonlyId; } gantt.attachEvent("onBeforeTaskDrag", isEditableTask); gantt.attachEvent("onBeforeLightbox", isEditableTask);

docs.dhtmlx.com/gantt/api__gantt … event.html
docs.dhtmlx.com/gantt/api__gantt … event.html
docs.dhtmlx.com/gantt/api__gantt … event.html