This is a migrated thread and some comments may be shown as answers.

Multiple groupings, but show only one footer row

1 Answer 103 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Jim
Top achievements
Rank 1
Jim asked on 18 May 2020, 10:36 PM

Hi,

I have a grid that is grouped by multiple columns. I've added a footer template via kendoGridGroupFooterTemplate, which causes one row for each grouping to appear. How can I just show a single footer row even when the grid is grouped by multiple columns?

Here's a simplified example with two columns that are both grouped: https://stackblitz.com/edit/angular-9f2v8c-wccblx?file=app/app.component.ts

You can see that there are two footer rows. One shows "Count:" (this is generated from the ProductID grouping) and the other "Count: 1" (this is generated from the ProductName grouping). I only want the footer row for the ProductName grouping to appear. How can I achieve this?

 

Thanks

Jim

1 Answer, 1 is accepted

Sort by
0
Martin Bechev
Telerik team
answered on 20 May 2020, 01:48 PM

Hi Jim,

I am afraid that currently the kendogridGroupFooterTemplate cannot be applied to some of the grouping levels. Having said that a single footer cannot be rendered in this case.

What I could suggest at this point is to explore the kendoGridGroupHeaderTemplate in which the developer can pass the aggregates for the items in the group. Please check the following example:

https://stackblitz.com/edit/angular-cbbur9-kcf7jz?file=app/app.component.ts

I hope this helps.

Regards,
Martin
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Jim
Top achievements
Rank 1
Answers by
Martin Bechev
Telerik team
Share this question
or