Dynamic Name in GroupFooterTemplate

3 posts, 0 answers
  1. Chinonso
    Chinonso avatar
    40 posts
    Member since:
    Jan 2017

    Posted 08 Jan Link to this post

    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. Preslav
    Admin
    Preslav avatar
    282 posts

    Posted 09 Jan Link to this post

    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.
  3. Chinonso
    Chinonso avatar
    40 posts
    Member since:
    Jan 2017

    Posted 09 Jan in reply to Preslav Link to this post

    Thanks a lot!! :)
Back to Top