problem with batchUpdate

Hi,

I am currently using commercial version of the gantt.

I am trying to change multiple tasks duration and change the task’s color based on the progress of the task.

Updating the task separately works, but when i am using batchupdate, it doesn’t change the task color always. As well as sometimes it doesn’t change the duration of the tasks or some end dates.

In this snippet nothing changes but check the console of the browser each tasks values that are dispalyed, the task has color as well as the progressColor property still it didn’t effect the task in the browser.

Attached the snippet here

http://docs.dhtmlx.com/gantt/snippet/413651da

Hello,
this probably happens because you working with a serialized copies of a gantt events (no with an actual chart data)

Try using gantt.eachTask or gantt.getTaskByTime for iterating the data
docs.dhtmlx.com/gantt/snippet/98c75e24

docs.dhtmlx.com/gantt/api__gantt_eachtask.html
docs.dhtmlx.com/gantt/api__gantt … ytime.html