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

kendo grid customize groupFooterTemplate

1 Answer 152 Views
Grid
This is a migrated thread and some comments may be shown as answers.
luis
Top achievements
Rank 1
luis asked on 19 Nov 2020, 03:35 PM
Good people, I have several queries: 1-how can I customize the subtotal template in kendo groupings specifically in the groupFooterTemplate ?, the idea is that it says Total and the name of the group. 2-Is it possible for the blue arrows to be removed? is that within my kendo the initial grouping (TPRH Income) only has one item unlike the grouping below (Total expenses, costs and revenue) that contains 2 sup groupings that generate a subtotal each, the problem is that in the above (TPRH Income) shows me 2 times the group name and the subtotal and it looks weird, I would like to know how to make it appear only once.

1 Answer, 1 is accepted

Sort by
0
Tsvetomir
Telerik team
answered on 23 Nov 2020, 08:18 AM

Hi luis,

The display value of the footer should be modified, as you have suggested, via the groupFooterTemplate:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/configuration/columns.groupfootertemplate

There are no default values for the footer, therefore, the Total text comes from additional JavaScript that might be present on the page. Is it possible for you to share all the relevant code snippets of the grid and its auxiliary snippets as well? 

As per hiding the chevron icon, you could do so by using CSS. You create a custom CSS selector and apply the "display: none;" rule. There is no option to hide it via the built-in settings as it is used for indicating the start of a group and makes it collapsible/expandable.

Looking forward to your reply.

Kind regards,
Tsvetomir
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
luis
Top achievements
Rank 1
Answers by
Tsvetomir
Telerik team
Share this question
or