We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Aggregates in Hierarchy Grid

Thread ID:

Created:

Updated:

Platform:

Replies:

151255 Feb 5,2020 07:50 AM UTC Feb 6,2020 10:17 AM UTC Angular - EJ 2 1
loading
Tags: Grid
Pardeep Pandit
Asked On February 5, 2020 07:50 AM UTC

Hi,

Is Aggregates Footer feature is available in Hierarchy Grid ?

Thanks & Regards
Pardeep Pandit




Prasanna Kumar Viswanathan [Syncfusion]
Replied On February 6, 2020 10:17 AM UTC

Hi Pardeep , 
 
Greetings from Syncfusion support 
 
Query : Is Aggregates Footer feature is available in Hierarchy Grid ? 
 
Yes, the Aggregate footer feature is available in hierarchy grid. Please refer the below code snippet and sample for your understanding. 
 
App.component.ts 

import { Component, OnInit, ViewChild } from '@angular/core'; 

@Component({ 
    selector: 'app-root', 
    templateUrl: 'app.component.html', 

export class AppComponent { 
    public data: Object[] = []; 

    ngOnInit(): void { 
        this.data = employeeData; 
        this.childGrid = { 
            dataSource: hierarchyOrderdata, 
            queryString: 'EmployeeID', 
            columns: [ 
                { field: 'OrderID', headerText: 'Order ID', textAlign: 'Right', width: 120 }, 
                    
            ],aggregates: [{ 
            columns: [{ 
                type: 'Sum', 
                field: 'Freight', 
                format: 'C2', 
                footerTemplate: 'Sum: ${Sum}' 
            }] 
 
App.component.html 

<div class="control-section"> 
    <ejs-grid #grid [dataSource]='data' [toolbar]="toolbar" [childGrid]="childGrid"> 
        <e-columns> 
             
        </e-columns> 
    </ejs-grid> 
</div> 
 
 
 
Please get back to us if you need further assistance 
 
Regards 
Prasanna Kumar N.S.V 
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon