How do I refresh gantt bar?


I’m having trouble of custom field in dhtmlx gantt as in the following topic

I’ve tried all the solution provided. But didn’t seems to work.

But now that I already have a solution to modify the duration in onTaskLoading event,but the gantt bar maintain as the original duration instead of the modifed one.

So how do I refresh the view of gantt bar?
I tried gantt.refresh() already, but didn’t seems to work.


the methods to refresh a data items are … htask.html