Predecessor

Good Morning

I am on the latest Version of Gantt, I recognized that if I move the Predecessors by Mouse / DargAndDrop the event under ActionComplete is not be fired,

I checked for requestType = recordUpdate, as well for dragAndDrop

what do I have to use to get the modified record that it can be updated in DB?

Martin

1 Reply

JD Jayakumar Duraisamy Syncfusion Team February 16, 2018 11:38 AM UTC

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 


Loader.
Up arrow icon