hello,
i’m here again with another problem
i want to allow user to add their task deadline, it works fine until user open the other task on lightbox, even the deadline it’s not being set before, it keeps showing this
Hello Farroh,
It might happen if you parse the deadline date incorrectly in the onTaskLoading event handler. You need to make sure that the date format is correct:
gantt.attachEvent("onTaskLoading", function (task) {
if (task.deadline)
task.deadline = gantt.date.parseDate(task.deadline, "xml_date");
return true;
});
It is hard to suggest what else might be wrong as I couldn’t reproduce the issue locally and I don’t see your code.
Here is a working sample: http://snippet.dhtmlx.com/8c09ccf03
If that doesn’t help you, please reproduce the issue in the snippet, then click on the “Share” button and send me the link.
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan