Hi Martin,
In Gantt, when adding a dependency line by using drag & drop action, the ActionComplete event with requestType as “drawConnectorLine” will be triggered,
In this event, we can get the added record details from the “currentRecord” event argument.
Please refer following code snippet,
|
<ej:Gantt ID="GanttControl" runat="server"
//...
ActionComplete="ActionComplete">
</ej:Gantt> |
|
function ActionComplete(args) {
//To update on indent,outdent,taskbar editing and predecessor drawn action
if (args.requestType == "drawConnectorLine") {
var ganttRec = [];
if (args.requestType == "drawConnectorLine")
ganttRec.push(args.currentRecord);
if (args.updatedRecords && args.updatedRecords.length)
ganttRec = ganttRec.concat(args.updatedRecords);
updateModifiedGanttRecords(ganttRec);
} |
We also prepared a documentation and demo sample on this. Please refer the following link,
Please let us know, if you need any other assistance.
Regards,
Jayakumar D