1. #1
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Tampa, Florida
    Posts
    26
    Vote Rating
    0
    surenr is on a distinguished road

      0  

    Default Adding summary to Grouping Header

    Adding summary to Grouping Header


    In most of the examples the grid grouping header has only the grouped field name and the number of items grouped under the group name.

    I am having to unique scenario that is similar to the below.

    Subject Score
    + Maths(3 Items) Total: 120
    John 40
    Smith 50
    Doe 30

    + English(3 Items) Total: 140
    John 50
    Smith 40
    Doe 50

    From the above I am able to group by the subject and get the total count of items...Not sure how to get the total score for each subject.

    Has anyone in the forum ever encountered the same.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,330
    Vote Rating
    846
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You will need to extend the grouping feature to be able to calculate the totals.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member
    Join Date
    Mar 2012
    Location
    Tampa, Florida
    Posts
    26
    Vote Rating
    0
    surenr is on a distinguished road

      0  

    Default


    Had been running in circles for the past two days on this issues...Any examples can help.

Thread Participants: 1