Gantt doesn’t have a built-in way to vertically reorder tasks in the timeline. The dev team will add that feature in the future, but I cannot give you any ETA.
For now, you need to implement a custom solution.
And here is the snippet that demonstrates how it can be implemented in your case according to what I see on the screenshot: https://snippet.dhtmlx.com/j85ag6h2
W.r.to First Point :- We are want to apply color not based on task cell.
It’s like Working time is overlapped on Office time. Worktime is 10:45am - 5:30pm. Office time like 9:10am to 6:10pm. Task are like 11:00am - 11:51am and so on.
W.r.to First Point :- We are want to apply color not based on task cell.
It’s like Working time is overlapped on Office time. Worktime is 10:45am - 5:30pm. Office time like 9:10am to 6:10pm. Task are like 11:00am - 11:51am and so on.
But you will need to implement a custom solution to show one rectangle on top of another. The easiest way would be to create several HTML elements and attach them to 1 HTML element that will be returned by the addTaskLayer method.
@ramil : Thank you for the input.
Two more follow up questions.
Can we drag and drop when gantt.config.readonly = true;? If gantt.config.readonly = false, user can change the task duration, we need to avoid this.
After drag and drop of a task, it should retains it’s duration. Ex if Task is spread across 3 hours after it’s part of another parent, it should retain its duration.
After drag and drop of a task, it should retains it’s duration. Ex if Task is spread across 3 hours after it’s part of another parent, it should retain its duration.
Gantt stores the duration value only in the integer format. If you have a different value, the duration will be rounded after a task is updated. When you set the duration_unit to “hour”, Gantt calculates the duration in hours.