Gantt error on adding task v19.3.0.45

When adding new item to Gantt i receive the following error:

GanttError.PNG

Code as follows:

<SfGantt DataSource="@TaskCollection" Height="450px" Width="100%" HighlightWeekends="true"

         Toolbar="@(new List<string>(){ "Add", "Edit", "Update", "Delete", "Cancel", "ExpandAll", "CollapseAll","Indent","Outdent"})"

         AllowSelection="true" GridLines="Syncfusion.Blazor.Gantt.GridLine.Both" TreeColumnIndex="1"

         ProjectStartDate="@ProjectStart" ProjectEndDate="@ProjectEnd">

    <GanttTaskFields Id="TaskId" Name="TaskName" StartDate="StartDate" EndDate="EndDate" Duration="Duration" Progress="Progress"

                     Dependency="Predecessor" ParentID="ParentId"></GanttTaskFields>

    <GanttEditSettings AllowAdding="true" AllowDeleting="true" AllowEditing="true" AllowTaskbarEditing="true" ShowDeleteConfirmDialog="true"></GanttEditSettings>

    <GanttColumns>

        <GanttColumn Field="TaskId" Width="100"></GanttColumn>

        <GanttColumn Field="TaskName" HeaderText="Job Name" Width="250"></GanttColumn>

        <GanttColumn Field="StartDate" HeaderText="Start Date"></GanttColumn>

        <GanttColumn Field="EndDate" HeaderText="End Date"></GanttColumn>

        <GanttColumn Field="Duration" HeaderText="Duration"></GanttColumn>

        <GanttColumn Field="Progress" HeaderText="Progress"></GanttColumn>

        <GanttColumn Field="Predecessor" HeaderText="Dependency"></GanttColumn>

    </GanttColumns>

    <GanttLabelSettings LeftLabel="TaskName" TValue="ProjectTasks">

    </GanttLabelSettings>

    <GanttSplitterSettings Position="30%"> </GanttSplitterSettings>

</SfGantt>

}

    @code {

        public DateTime ProjectStart = new DateTime(2019, 3, 25);

        public DateTime ProjectEnd = new DateTime(2019, 7, 28);

        public List<ProjectTasks> TaskCollection { get; set; }

        bool SpinnerVisible = true;


        protected override async Task OnInitializedAsync()

        {

            TaskCollection = await _db.Get_Project_Tasks();

        }


    }

----------------------------------------------------------------------------------------------------------------------------

Class Model


namespace DataAccessSQL.Models.Projects

{

    public class ProjectTasks

    {

        public int TaskId { get; set; }

        public string TaskName { get; set; }

        public DateTime StartDate { get; set; }

        public DateTime EndDate { get; set; }

        public string Duration { get; set; }

        public int Progress { get; set; }

        public string Predecessor { get; set; }

        public int? ParentId { get; set; }

    }

}



4 Replies

MS Monisha Sivanthilingam Syncfusion Team October 18, 2021 09:37 AM UTC

Hi Martin, 
 
Greetings from Syncfusion support. 
 
We have analyzed your issue, however we were unable to replicate the issue you reported. We tried with both self-referential and hierarchical data in the version 19.3.45. However, we were able to add records without any issues. Please share more details about the issue you faced such as: 
 
  1. The steps taken to replicate the issue.
  2. In what use cases is the issue replicated ?
  3. Please share a video demonstrating the issue.
  4. If possible, please modify the sample attached below to replicate your issue or share an issue reproducible sample of your own.
 
 
Any information you can share with us will be useful to us in providing a solution to you. 
 
For more information regarding data binding in Gantt Chart, please refer our Online Documentation. 
 
Regards, 
Monisha. 



MA Martin October 18, 2021 10:09 AM UTC

Hi Monisha, I did some further testing and it appears only to be an issue if there are less than 2 entries in the TaskList. I have amended the sample withy a single entry and when you add new task it errors and all tasks disappear Thanks, Martin


Attachment: F1696721651087194_9fe0148e.zip


MS Monisha Sivanthilingam Syncfusion Team October 19, 2021 09:36 AM UTC

Hi Martin, 
 
Thank you for sharing the issue reproducible sample. 
 
We were able to replicate the issue you reported. We have forwarded your query to the concern team and will provide you with further details within two business days(October 21, 2021). 
 
We appreciate your patience until then. 
 
Regards, 
Monisha. 



MS Monisha Sivanthilingam Syncfusion Team November 2, 2021 01:37 PM UTC

Hi Martin, 
 
Thank you for your patience. 
 
We have confirmed the reported issue as a bug and have logged a bug report for it. You can track its status from the below feedback link. 
 
 
The fix will be provided in the weekly patch release scheduled for November 24, 2021. 
 
We appreciate your patience until then. 
 
Regards, 
Monisha. 


Loader.
Up arrow icon