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

Dynamic Name in GroupFooterTemplate

2 Answers 15 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Chinonso
Top achievements
Rank 1
Chinonso asked on 08 Jan 2018, 04:34 PM

Hey there guys, i have a grid with grouped rows. Each set of grouped rows has a  row called 'Total:'  which consist of the summation of the values above. What i want to achieve is to have the name of each group to also appear in the total row. So rather than the static name 'Total:' i want 'People Reached Total:','People Trained Total:', 'Student Completion Total:'. I have attached an image of the grid and also provided a link to the code. Thanks

 GroupedGrid

 

2 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 09 Jan 2018, 08:40 AM
Hi Chinonso,

To achieve the desired functionality, I would suggest getting the desired data from the group.items field of the groupFooterTemplate.
For example: 

{ field: "PeopleCategory", title:" ", aggregates: ["count"],groupFooterTemplate:"#=group.items[0].PeopleCategory# Total:#=count#" },

The modified Dojo: http://dojo.telerik.com/IJenO


Regards,
Preslav
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Chinonso
Top achievements
Rank 1
answered on 09 Jan 2018, 02:25 PM
Thanks a lot!! :)
Tags
Grid
Asked by
Chinonso
Top achievements
Rank 1
Answers by
Preslav
Telerik team
Chinonso
Top achievements
Rank 1
Share this question
or