I have this piece of code to get the task on click but it doesn’t return any custom properties.
OnTaskClick() {
gantt.attachEvent("onTaskClick", function (id, e) {
var task = gantt.getTask(id);
return true;
});
This is how I add the task
this.tasks.data.push({
id: this.dataIdCounter,
guidId: subProject.activities[c].activityId,
type: activityType,
text: activity.activityName,
start_date: this.GetDateFormatted(activity.startDate),
end_date: this.GetDateFormatted(activity.endDate),
duration: activity.duration,
progress: activity.pctComplete,
open: true,
parent: subProjectId
});
guidId doesn’t show up, how can I access custom properties. I am using the trial version btw.