Gantt sorting causes duplicate tasks

When I enable sorting and editing the display shows duplicate records every time a new item is added.  this is all I have right now and I am just using a List<TaskData> for the source.

@using Syncfusion.Blazor.Gantt
<SfGantt DataSource="@TaskCollection" Height="450px" Width="700px" AllowSorting="true" Toolbar="@(new List<string>() { "Add", "Cancel", "CollapseAll", "Delete", "Edit", "ExpandAll", "NextTimeSpan", "PrevTimeSpan", "Search", "Update" })" >
    <GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" Progress="Progress" Child="SubTasks">
    </GanttTaskFields>
    <GanttEditSettings AllowEditing="true" AllowAdding="true" AllowDeleting="true">
    </GanttEditSettings>
</SfGantt>



3 Replies 1 reply marked as answer

GM Gopinath Muniraj Syncfusion Team October 21, 2020 03:35 PM UTC

Hi Tim, 
Thanks for contacting Syncfusion support. 
We have analyzed your query. 
We couldn’t reproduce the issue you have reported. We have used the code that you given in your update. Added the new tasks and performed sorting operations. But we couldn’t find the duplicated tasks. Can you please tell us the replication steps to reproduce the reported problem? We have prepared a sample for testing this issue. We are attaching this sample here. Please modify the below sample to reproduce the reported problem. It will be helpful for us to provide you with the proper solution as soon as possible. 
Thanks, 
Gopinath M 



TF Tim Faircloth October 21, 2020 03:53 PM UTC

I am using version 18.3.0.42 and when I upgrade your example to this version it duplicates the entries also.

I have attached the razor file i am using it is basically the same except for the nuget version of the chart.

Attachment: PMGantt_b56cbc3a.zip


GM Gopinath Muniraj Syncfusion Team October 22, 2020 01:57 PM UTC

Hi Tim, 
We have analyzed your query. We are able to reproduce the issue you have reported in the updated version v18.3.42. We have logged a bug report for this. The status can be tracked through this below feedback link. 
We will fix this issue and the fix will be included in our upcoming SP release which is expected to be rolled out on end of October 2020. 
Thanks for your patience until then. 
Thanks, 
Gopinath M 


Marked as answer
Loader.
Up arrow icon