1. #1
    Sencha User francescoNemesi's Avatar
    Join Date
    Apr 2007
    Location
    London (UK), Milan (ITA)
    Posts
    148
    Vote Rating
    0
    francescoNemesi is on a distinguished road

      0  

    Question AggregationRowConfig and setModel

    AggregationRowConfig and setModel


    Hi,

    I have a grid with an AggregationRow, I calculate the values to display on the server side, so I use

    AggregationRowConfig<...> arc = new AggregationRowConfig<...>();
    arc.setModel(myAggregatedModel);

    This way I want the aggregation row to display my precalculated total.

    The problem is that no data is shown unless I also do

    arc.setSummaryType(SummaryType.SUM (or any other SummaryType))

    but by doing that "myAggregatedModel" is ignored and the values in the aggregation row are calculated at run time, which completely defeats the point of precalculating the aggregation server side.

    Can anybody help?

    Thanks

  2. #2
    Sencha User francescoNemesi's Avatar
    Join Date
    Apr 2007
    Location
    London (UK), Milan (ITA)
    Posts
    148
    Vote Rating
    0
    francescoNemesi is on a distinguished road

      0  

    Default Fixed

    Fixed


    The problem was due to wrong logic in my code, the totalModel was always null.

    fixed.