Hi Karol,
We analyzed the provided sample. In this sample data source updated in improper way. Hence the console error occurs. We have modified the sample and updated the new data by using setModel.
Please find the code example below:
'toolbarClick': function (args) { if (args.itemName == "ToggleTaskCB") { condition = !condition; var newData = condition ? dataSource : dataSource2, // my other dataSource ganttObj = $("#gantt").ejGantt("instance"); //To update new data ganttObj.setModel({ "dataSource": newData }); } }, |
Please find the modified sample from below location
Please let us know if you have further assistance on this.
Regards,
Jone sherine P S.