I'm having an issue, initially I'm configuring the default endDate
endDate: new Date(2021, 12, 27),
then, I have to update the endDate again when I call the getData function, but bed as it doesn't work, I can't re-update the endDate as I would like. You can see the picture below:
I have a function in the service to get data from api and then update it as follows:
updateDataChart(gantt: GanttComponent, data) {
if (gantt && gantt.ganttInstance) {
gantt.ganttInstance.project.taskStore.data = data;
gantt.ganttInstance.endDate = new Date('2021, 8, 27');
}
}
But it seems that only the data update function works, gantt will only get the endDate of the tasks in the newly updated data. The project's update endDate function below is not working. After I delete on the update data line above, the update end date function below will work, but will not be able to update the data retrieved from the api. So how do I get both operations running.
I don't do it that way anymore, but I will add a task to the data, and then add a condition field to hide the task. How can I hide the last line like in the image above by css, I already hide the left menu bar, but not the right
I mean, I create a task with endDate, and still want to keep that task, not that I want the filter to remove that task. So I just want to use css to hide that task