kendo grid customize groupFooterTemplate

2 posts, 0 answers
  1. luis
    luis avatar
    1 posts
    Member since:
    Aug 2020

    Posted 19 Nov 2020 Link to this post

    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.
  2. Tsvetomir
    Admin
    Tsvetomir avatar
    837 posts

    Posted 23 Nov 2020 Link to this post

    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/.

Back to Top