Lightbox section disable

How can i disable duration in lightbox?

sample :

[code]gantt.attachEvent(“onLightbox”, function (task_id){
gantt.getLightboxSection(“start_date”).node.getElementsByTagName(“select”)[0].setAttribute(“disabled”, true);
gantt.getLightboxSection(“start_date”).node.getElementsByTagName(“select”)[1].setAttribute(“disabled”, true);
gantt.getLightboxSection(“start_date”).node.getElementsByTagName(“select”)[2].setAttribute(“disabled”, true);
gantt.getLightboxSection(“progress”).node.children[0].disabled = “true”;

});[/code]

Hi,
you can retreive the node of a time control using gantt.getLightboxSection. After that you’ll need to access the duration controls manually and disable each of them:gantt.attachEvent("onLightbox", function (task_id){ var duration = gantt.getLightboxSection("time").node; var inputs = duration.querySelectorAll(".gantt_duration input"); for(var i = 0; i < inputs.length; i++){ inputs[i].disabled = true; } });
Check the sample
docs.dhtmlx.com/gantt/snippet/d0166787