change ParentId of a task

I would like to find a way to change ParentId of a task
 
 example :
 - we have 3 tasks A, B and C: A is the parent of task B
 - I would like to be able to change the parent of task B to become C

I modify a task from a Dialog. I can modify the other informations apart from the parentId. Even if I modify the parentId to task C and close the Dialog, the modification is not applyed to the Chart and task A stays the parent of task B. 
How to implement the modification of the parentId ?

Attachment: Capture_7b10002d.zip

1 Reply 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team July 23, 2020 12:05 PM UTC

Hi Harifenitra, 
 
We have analyzed your query and would like to tell you that by making use of the save request type in actionComplete event to refresh the Gantt, we can apply the modifications in ParentID to the Gantt. The following code snippet shows how to achieve this. 
 
 
public actionComplete(args: any) { 
      if(args.requestType === 'save') { 
            ganttObj.refresh(); 
        } 
    }; 
 
 
Please contact us if you require any further assistance. 
 
Regards, 
Monisha. 


Marked as answer
Loader.
Up arrow icon