Angular TreeGird property “hasChildRecords” return true when child record array is zero

I have a problem,

I get the recursive data from backend API but TreeGird property “hasChildRecords” return true when child record array is zero.

Sample : https://stackblitz.com/edit/angular-ujvgat-cevf1v

Image_9749_1723716553413


2 Replies 1 reply marked as answer

AS Alan Sangeeth S Syncfusion Team August 19, 2024 06:54 AM UTC

hi Krailit,

We have logged this reported issue “hasChildRecords data property is not updated properly" as bug. We are working on a fix for this issue and plan to include it in our 2023 Volume 3 main release, which is currently scheduled for Sep, 09 2024.

You can track the progress of the resolution by visiting the feedback link provided below:

Feedback link:  https://www.syncfusion.com/feedback/60489/haschildrecords-property-value-is-not-updated-properly

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



AG Ajithkumar Gopalakrishnan Syncfusion Team September 10, 2024 11:45 AM UTC

Hi Krailit,

We appreciate your patience.

The issue, "hasChildRecords data property is not updated properly" was caused by hasChildRecords being set to true when the subtask is empty. We are pleased to announce that a fix for this issue has been rolled out in our pacth release (v26.2.14). Please upgrade to our latest version to resolve the problem.

Sample link: 
https://stackblitz.com/edit/7ft6uz-zzmrdu?file=package.json

Release notes: https://ej2.syncfusion.com/documentation/release-notes/26.2.12?type=all#tree-grid

Contact us if you require any further assistance.


Regards,

Ajithkumar G


Marked as answer
Loader.
Up arrow icon