Refresh Gantt

I'm using local data binding, and posting the data to the server through axios. Once I create a new task, I want to update it with the ID returned from the server. But how do I refresh/re-render the gantt upon receiving the response from the server?


3 Replies 1 reply marked as answer

MS Monisha Sivanthilingam Syncfusion Team March 2, 2021 08:49 AM UTC

Hi Christian, 
 
Thank you for contacting Syncfusion support. 
 
We have analyzed your query and would like to inform you that we have support to update the TaskId in Syncfusion Gantt Chart. By making use of the updateTaskId() method, you can change the TaskId of a record to any other value. The below code snippets demonstrate the solution. 
 
App.vue 
methods: { 
    changeTaskid: function (e) { 
      var ganttObj = document.getElementById("GanttContainer").ej2_instances[0]; 
      ganttObj.updateTaskId(2, 20); 
    }, 
  }, 
 
Note: You cannot change the TaskId of a record to an already existing value. The modified TaskId should be a new Id, (i.e)., one that is not already assigned to another task. 
 
We have also prepared a sample for your reference. 
 
Regards, 
Monisha. 


Marked as answer

CD Christian DAquino March 3, 2021 02:33 PM UTC

Hi,
could you please provide an example on how to use RemoveSaveAdaptor with the Gantt chart?


MS Monisha Sivanthilingam Syncfusion Team March 8, 2021 01:19 PM UTC

Hi Christian, 
 
Thank you for your patience. 
 
Currently, we are facing a few issues in rendering Gantt using RemoteSaveAdaptor. We have considered this as a bug from our side and have logged a bug report for it. You can track its status from the below feedback link. 
 
 
The fix will be included in our next patch release of Volume 1 2021 release which is roll-out on end of March 2021. 
 
We appreciate your patience until then. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon