1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    27
    Vote Rating
    0
    OBELIX is on a distinguished road

      0  

    Question GroupSummaryView and SummaryColumnConfig

    GroupSummaryView and SummaryColumnConfig


    Hi,


    I have grid with a GroupSummaryView.
    All is right.

    I would like to put the result of a SummaryColumnConfig on the top of the GroupSummaryView.
    I think it's in the setGroupRenderer like below but i don't know how get my SummaryColumnConfig value.

    view.setGroupRenderer(new GridGroupRenderer() {
    public String render(GroupColumnData data) {
    String f = cm.getColumnById(data.field).getHeader();
    String l = data.models.size() == 1 ? "Item" : "Items";

    //Double mySummaryColumnConfigValue = ??????

    return f + ": " + data.group + " (" + data.models.size() + " " + l + ")";
    }
    });


    Any ideas ?

    Tks,

    JB

  2. #2
    Ext User
    Join Date
    Sep 2008
    Location
    Germany
    Posts
    961
    Vote Rating
    0
    Arno.Nyhm is on a distinguished road

      0  

    Default


    the summary is calculated after the gridgrouprenderer :-(


    it looks that you have all models of a group in the GroupColumnData: data.models and you have to calculate the sum by yourself again.
    This forum needs your help: you got hints from the community and now you have fixed your code? dont just reply with "now its fixed" or "i found the error"! please take the time to post also an detailed answer with the working code.

    GreaseMonkey Script for a GXT-only Forum: it hides ExtJs here: New Posts • Search Results • Advanced Search form • Category overview http://www.extjs.com/forum/showthrea...041#post410041

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar