Aggregate Sum Not Working

Dear Team

Aggregate sum not working when I have used in dot in field and caption like Qty 4.30​. What can I do for achieve​ this task. 

Without dot in field its working fine.

I have used angular 15 and @syncfusion/ej2-angular-grids": "20.2.39"


Thanks & Regards

Nagendra Gupta


1 Reply

AR Aishwarya Rameshbabu Syncfusion Team March 22, 2024 12:16 PM UTC

Hi Nagendra Gupta,


Upon reviewing your query, it has come to our attention that you are utilizing a dot (.) in the Grid column field and in the caption of the aggregates.


We have created a sample with the specified version, but the aggregates are rendered properly. Please refer to the below code example and the sample and the screenshot.

App.component.html

<e-aggregates>

        <e-aggregate>

            <e-columns>

                <e-column field='Freight.Qty' type='sum' format='C2'>

                    <ng-template #groupFooterTemplate let-data>Qty 4.30: {{data.sum}}</ng-template>

                </e-column>

                <e-column field='Freight.Qty' type='max'>

                    <ng-template #groupCaptionTemplate let-data>Max: {{data.max}}</ng-template>

                </e-column>

            </e-columns>

        </e-aggregate>

    </e-aggregates> 

 


Sample: https://stackblitz.com/edit/github-agppy1-kzvgtt?file=src%2Fapp.template.html,src%2Fdatasource.ts,src%2Fapp.component.ts,package.json


Screenshot:

A screenshot of a computer

Description automatically generated


If you still encountering an issue, we kindly request you to provide the following information to assist us in further investigating the issue and providing a more effective solution:

- Confirmation of complex columns being used in the Grid.

- Details regarding the type of data binding being utilized in the Grid, specifically whether it is remote or local data binding.

- If Remote data binding is being used, please provide the adaptor details along with the code defining the DataManager.

- Please share the complete Grid rendering code, including the aggregate columns and any customized functions that have been implemented.

- If possible, kindly provide an issue replication sample along with a video demonstration or try to reproduce the issue in the stackblitz sample provided.


Thank you for your cooperation.



Regards

Aishwarya R



Loader.
Up arrow icon