Hi, I'm making a gantt chart with resources views, based on resource view sample, but is not showing the tasks bar.
https://ej2.syncfusion.com/angular/documentation/gantt/resource-view
In console, I have this error:
3core.mjs:11860 ERROR TypeError: Cannot set properties of undefined (setting 'isResourceTaskDeleted')
at ChartRows2.createTaskbarTemplate (chart-rows.js:1353:48)
at ChartRows2.refreshGanttRows (chart-rows.js:1294:14)
at ChartRows2.refreshChartByTimeline (chart-rows.js:66:14)
at Timeline2.updateChartByNewTimeline (timeline.js:98:37)
at Gantt2.updateProjectDates (gantt.js:2403:33)
at GanttChart2.renderChartElements (gantt-chart.js:87:25)
at Observer2.notify (observer.js:101:29)
at Component2.notify (component.js:306:32)
at Gantt2.treeDataBound (gantt.js:1343:14)
at GanttTreeGrid2.dataBound (tree-grid.js:237:21)
handleError @ core.mjs:11860
My code:
Html content:
Ricardo,
For your query, we have made sample by your provided code snippet but there is incompatibility with external folders. So we have made sample with local data source and remaining all we used your code snippets.
We are able to replicate your issue, with wrong dataSource mapping ([dataSource]="invalid variable"]) in the html file. So kindly ensure at your application whether this issue occurred or not.
If still facing same issue, share the deatils asked below to investigate further.
Sample - 4bkkmf (forked) - StackBlitz
Regards,
Sridharan
Hi Ricardo,
Have you found your problem's root cause? I also experienced this problem on my project. this happens intermittently and I cannot find what is the root cause. the Gantt chart was just only stuck on the loading bar and not showing any graph.
Muhamad,
Thank you for sharing the details. The console error you mentioned has been resolved in our latest version 28.1.33, and it will no longer occur, even if an incorrect variable name is used for the dataSource within the <ejs-gantt> component. We kindly recommend upgrading your Gantt chart to the latest version to address this issue.
Updated sample - 4bkkmf (forked) - StackBlitz
Regards,
Sridharan