When Resources is changed variably, the resource allocated to the Gantt Chart Task is displayed as undefined.

<ejs-gantt
id="GanttContainer" ref='gantt'
:allowExcelExport="true"
:allowPdfExport="true"
:allowRowDragAndDrop="true"
:allowSelection="true"
:allowSorting='true'
:columns.sync="columns"
:dataSource="store.sfGanttData.data"
:dateFormat="dateFormat"
:editDialogFields="editDialogFields"
:editSettings="editSettings"
:enableContextMenu="true"
:gridLines="gridLines"
:height="height"
:highlightWeekends="true"
:labelSettings="labelSettings"
:projectEndDate="store.sfGanttData.projectEndDate"
:projectStartDate="store.sfGanttData.projectStartDate"
:resourceFields="resourceFields"
:resources.sync="store.Resources"
:splitterSettings="splitterSettings"
:taskFields="taskFields"
:timelineSettings="timelineSettings"
:toolbar="toolbar"
:toolbarClick="toolbarClick"
:treeColumnIndex="1"
:selectionSettings= "selectionSettings"
:dataBound="dataBound"
></ejs-gantt>


We are using the Pina Store and have both Tasks and Resources bound at the same time.

However, there is a phenomenon in which Resources are bound after Tasks are bound as shown in the figure below. If the same operation occurs again, there is a phenomenon in which Resources are previously bound.


The figure below shows the resources included in the task.

A resource with only "unit :100" attribute is created.



Actually bound Resources data !



Is there a function to refresh Tasks?


Is it possible to further update Resources while Tasks are bound?



This content was used with Google Translate.


1 Reply

MS Monisha Sivanthilingam Syncfusion Team August 26, 2022 11:18 AM UTC

Hi Ygkim,


Greetings from Syncfusion support.


We have checked the issue you reported and noticed that this issue occurs when the resources mapped to a task do not exist in the resource collection assigned to the Gantt Chart. Please ensure that the ids of the resources mapped to the tasks when you are reassigning the data to the Gantt Chart exist in the resource collection you are assigning to the Gantt Chart.


Sample: https://stackblitz.com/edit/1zq2t4?file=index.ts,index.html


Regards,

Monisha.


Loader.
Up arrow icon