Hi Peter,
Greetings from Syncfusion support.
In Gantt, we can dynamically change the data source by directly assigning the new data to the dataSource property. We prepared a sample, in which Gantt is loaded initially, with the data fetched from the server using DataManager support. On Button click, we had dynamically updated the Gantt with newly fetched data from the server using dataSource property. Please find the below code example.
<button onclick="reloadData()">Reload data</button>
function reloadData() {
var obj = document.getElementById("Gantt").ej2_instances[0];
var newData = new ej.data.DataManager({
url: '/Home/reloadData',
adaptor: new ej.data.UrlAdaptor,
crossDomain: true,
})
obj.dataSource = newData;
} |
Please get back to us if you require further assistance on this.
Note: We have removed bin and obj folder in the provided sample for security reasons.
Regards,
Pooja Priya K.