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