Dataprocessor + Gantt -> Save on demand

Im trying to use dataprocessor with manual update mode. However it seems to send wrong data when there are changes in both links and tasks. I am using modified version of your ASP.NET MVC sample. I wonder if manual update mode is supported with Gantt chart. If it is maybe special configuration is required.

Example:
Changed task 10 and added 1 link. GanttMode was set to Tasks. As you can see link is lacking data and should not be present here but in second request with proper GanttMode.
10_id:10
10_text:New task
10_start_date:2014-06-23 00:00:00
10_order:0
10_progress:0
10_parent:9
10_type:task
10_duration:1
10_open:true
10_end_date:2014-06-24 00:00:00
10_!nativeeditor_status:updated
1406112781570_id:1406112781570
1406112781570_!nativeeditor_status:inserted
ids:10,1406112781570

If you are using Gantt 2.1, use the next code to send data manually

dp.setGanttMode("tasks"); dp.sendData(); dp.setGanttMode("links"); dp.sendData();

Not quite sure that it will work anyway
In above case, the second data package ( link’s data ) will contain the temporary id of the task, not the one from DB. As the task itself is not saved yet.

There is no “setGanttMode” function in dataprocessor that is included with Gantt 2.1.1. However i tried to set it with internal property “_ganttMode”. It doesnt seem to work. First request is fired but there is no second one.

Sorry, I have mixed dev. and official versions.
Please try to update dhtmlxgantt.js with attached one, it will support the above API
dhtmlxgantt.zip (60.3 KB)