Multiple update not refresh gantt properly

Hi,

I have a problem on the gantt update when I use the transaction mode to batch update in one request.
I have a dataProcessor configured like that

this.dp = gantt.createDataProcessor({
	url: '/api/planning/business',
        mode: 'JSON'
})

this.dp.setUpdateMode('off')
this.dp.setTransactionMode({
	mode: 'POST',
        headers: {
        	'Authorization': 'Bearer ' + token,
                'Content-Type': 'application/json'
        }
}, true)

And I use this code to send data to the server

this.dp.setGanttMode('tasks')
this.dp.sendData()
this.dp.setGanttMode('links')
this.dp.sendData()

After the update, tasks remain marked whereas there successfully updated to the database.

How can I make this work properly ?

I already tried gantt.render(), gantt.updateTask() on onAfterUpdateEvent but nothing works.

Can you help me solve that problem please ?

Thanks a lot

Hello,
I suppose you use the auto_scheduling functionality. If that is the case, we are aware of that issue.
When you update a task and Gantt auto-schedules other tasks, the changes are sent to the server, but auto-scheduled tasks are still highlighted. If you try to update the same task again, the changes for the highlighted tasks are not sent to the server.
You can see that the issue is reproduced in the following snippet:
http://snippet.dhtmlx.com/5/ab9449826

You can remove the highlight by using the setUpdated method:
https://docs.dhtmlx.com/api__dataprocessor_setupdated.html
But it doesn’t help in the case when the changes are not sent to the server.

The dev team will fix it in the future, but I cannot give you any ETA. Unfortunately, I don’t have a workaround for that.