Different time value in Grid vs Gantt view for a task

Hi Team,

I am just doing a feasibility check of gantt component for my project using trial version before finalising for license copy.

what i am trying is that i want to show the 2 different date time value for a task, one in grid view and one in gantt view.

So that i can showcase scheduled date-time(10.00 am) on grid view of a task and Actual time(10.10 am) will be on the gantt view as shown below(where the activity itself will be plotted against the scale).


I checked the gantt Api, couldn’t find anything that would help me achieve this,so could you tell me if this is possible and if yes, then how ?

Hello,

You need to set task.date = date on the X scale to display event on the correct position.
And to display another time in the grid, you can change it in date_grid template:

gantt.templates.date_grid = function(date, task){ date = gantt.date.add(date, -10, 'minute'); var formatFunc = gantt.date.date_to_str("%H:%i"); return formatFunc(date); };
docs.dhtmlx.com/gantt/snippet/3bb81c26
docs.dhtmlx.com/gantt/desktop__ … lates.html

HI Polina,

thank you.

DHTMLx gantt is just awesome, there is nothing that is not possible using plugin :sunglasses: