ComplexHierarchicalTree freezes the application when multiple parents

Dear Syncfusion,

I am experiencing some issues with the ComplexHierarchicalTree diagram component.

When there are nodes with only one parent, it works fine. But when adding a node with multiple parents, it freezes the app.

I include here a project that reproduces the issue.

Thanks for the help,

Cristobal.



Attachment: BlazorApp1_ed11d70f.zip

7 Replies

SU Sumathi Uthayakumar Syncfusion Team December 14, 2023 10:24 AM UTC

Hi Cristobal,



We were able to reproduce your reported issue. We are currently validating the issue and will provide additional information on December 18, 2023.



Regards,

Sumathi U.



CR Cristobal December 14, 2023 02:45 PM UTC

Hi Sumathi,

Thanks for your quick response. I look forward to hearing from you.

Best regards,

Cristobal.




SU Sumathi Uthayakumar Syncfusion Team December 19, 2023 06:54 AM UTC

Reported issue: The application freezes when adding a node with multiple parents in a complex hierarchy layout

We have confirmed that the reported issue is a bug and have logged a defect report regarding it. We will fix the issue and include the fix in our upcoming weekly NuGet release, which is expected to be rolled out on January 3, 2024. We appreciate your patience until then.

Meanwhile, you can track the status of the bug at the following link:

Feedback Link:  https://www.syncfusion.com/feedback/49352/the-application-freezes-when-adding-a-node-with-multiple-parents-in-a-complex

Disclaimer: The inclusion of this solution in the weekly release may change due to other factors, including but not limited to QA checks and work reprioritization.



CR Cristobal replied to Sumathi Uthayakumar December 20, 2023 09:48 AM UTC

Hi Sumathi,

Thank you for the information.

I look forward to the fix.


Best regards,

Cristobal.




SU Sumathi Uthayakumar Syncfusion Team January 3, 2024 07:48 AM UTC

We have noticed that you have set the same value to both the  ID and parent ID, which is not correct. ID value should be an unique value where as parent ID value should be the ID value of its parent. For example, in the shared code snippet, you have set the parent ID as "CFO" and the ID name as "CFO". You cannot update it like this. Additionally, we have shared  a modified code snippet for your reference.


Code Snippet:



   protected override Task OnInitializedAsync()

   {

       ObjectDataSource = new List<ObjectData>()

       {

           new ObjectData() { Name = "CEO", Id = "CEO" },

           new ObjectData() { Name = "COO", Id = "COO", ParentEntities = new[] { new EntityInfoDto() { Id = "CEO", Name = "CEO" } } },

           new ObjectData() { Name = "CTO", Id = "CTO", ParentEntities = new[] { new EntityInfoDto() { Id = "CEO", Name = "CEO" } } },

           new ObjectData() { Name = "CFO", Id = "CFO", ParentEntities = new[] { new EntityInfoDto() { Id = "CEO", Name = "CFO" } } },

          new ObjectData() { Name = "Child", Id = "CHILD", ParentEntities = new[] { new EntityInfoDto() { Id = "COO", Name = "COO" }, new EntityInfoDto() { Id = "CTO", Name = "CTO" } } },

       };

       return base.OnInitializedAsync();

   }


We have fixed the reported issue "The application freezes when adding a node with multiple parents in a complex hierarchy layout" and have included the fix in our weekly patch release (v24.1.44). To resolve the reported issue, please update the "Syncfusion.Blazor.Diagram" package to the latest version in your application. You can find the package link below.


https://www.nuget.org/packages/Syncfusion.Blazor.Diagram



CR Cristobal January 3, 2024 08:54 AM UTC

Hi,

Thanks for noting the mistake in the snippet. Of course, it was a sandbox transcript issue. However, the issue was there in any case.

I checked the new version, and the issue is solved.

Thanks,

Cristobal.



PR Preethi Rajakandham Syncfusion Team January 4, 2024 05:47 AM UTC

Hi Cristobal,

Thank you for the update. 

Glad that your issue is resolved. Please let us know if you require any further assistance on this, we will be happy to assist you. 

Regards,

Preethi R


Loader.
Up arrow icon