1. #1
    Sencha User
    Join Date
    Sep 2010
    Posts
    10
    Vote Rating
    0
    prabhathkvp is on a distinguished road

      0  

    Default SummaryColumnConfig

    SummaryColumnConfig


    Hi,

    I Have a grid with GroupingStore .. I have used SummaryColumnConfig and added a SummaryRenderer for finding the Total Sum of a column..Now I want to add one more summaryRenderer for Average. how can i add that.

    SummaryColumnConfig<Double> column1 = new SummaryColumnConfig<Double>("comapny", "Comapny", 120);
    column1 .setSummaryRenderer(new SummaryRenderer() {
    public String render(Number value, Map<String, Number> data) {
    return "Sum";
    }
    });

    SummaryColumnConfig<Double> column2 = new SummaryColumnConfig<Double>("sale", "Sale", 120);



    col2.setSummaryType(SummaryType.SUM);
    col2.setSummaryRenderer(new SummaryRenderer() {
    public String render(Number value, Map<String, Number> data) {
    return value.intValue() + "";
    }
    });



    Is It possible to add two aggregation(Sum and Average) in grouping store..How is it possible??Plz Reply

  2. #2
    Sencha - GXT Dev Team
    Join Date
    Nov 2010
    Posts
    209
    Vote Rating
    -2
    Ersmarker has a little shameless behaviour in the past

      0  

    Default


    There is no support for more than one summary row for a grouping grid.
    You have to implement this your self.
    A good start is to extend GroupSummaryView and SummaryColumnConfig.

Similar Threads

  1. [FNR] GroupSummaryView and SummaryColumnConfig alignment issue
    By The_Jackal in forum Ext GWT: Bugs (2.x)
    Replies: 2
    Last Post: 23 Jul 2010, 1:26 AM
  2. GroupSummaryView and SummaryColumnConfig
    By OBELIX in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 18 Feb 2010, 8:21 AM
  3. RowExpander with SummaryColumnConfig
    By kolli in forum Ext GWT: Help & Discussion (1.x)
    Replies: 0
    Last Post: 18 May 2009, 4:25 AM

Thread Participants: 1

Tags for this Thread