Hi there,
I am trying to apply aggregation to the grid. but when I am going to edit a column that has some aggregates I encounter an error called
DataUtil.aggregates[type.toLowerCase(...)] is not a function.
and
Cannot read properties of null (reading 'closest')
I don't know what is the cause of this issue. can you assist me in sorting out this issue? I have attached the following sample project for your convenience. try to edit a cell and check the console. I am getting above 2 errors.
Thanks
Best regards
Buddhi
Hi Buddhi,
Greetings from Syncfusion support.
Upon reviewing your query, we have noticed that you are facing script issues while editing the record of the column that contains multiple aggregates.
From the issues listed, the first issue “DataUtil.aggregates[type.toLowerCase(...)] is not a function” is confirmed as a bug on our end and logged it as “Editing a record of column that contains multiple aggregates throws a script error”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technical feasibility and Product Development Life Cycle ) and will include the defect fix in our upcoming patch release which will be rolled out on “August 13th, 2024”.
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through the below link,
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".
The second issue is related to the editSettingsTemplate not being defined properly within your application. We have addressed this query in the forum linked below. Kindly refer to this for further information.
Regards
Aishwarya R
Hi Aishwarya,
Thank you for your prompt response regarding the issue related to the script error of Editing a record of the column that contains multiple aggregates. We appreciate your attention to this matter.
We understand that the fix is scheduled in the upcoming patch release which will be rolled out on August 13th, 2024. We will eagerly await the update and appreciate your efforts in resolving this issue.
Please feel free to reach out if you have any further details or need additional information from our end.
Best Regards,
Buddhi
Hi Buddhi,
We are glad to announce that, we have included the fix for the issue “Editing a record of column that contains multiple aggregates throws a script error” in our 26.2.9 release. So please upgrade to our latest version of the Syncfusion package to resolve the reported issue.
Root Cause: This issue occurred because the calculation was previously configured for a single string value only.
Solution: The aggregates were separated by type, and the data was retrieved as an array. Then, a loop was used to calculate the value for each element in the array.
Sample: https://stackblitz.com/edit/github-4ahr12-lq4ubc?file=src%2Fapp.template.html,package.json
We thank you for your support and appreciate your patience in waiting for this release. Please get back to us if you need any further assistance.
Regards,
Aishwarya R