Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid summary row shows 0

    Using:
    GWT 2.5.0
    SmartGWT 4.0-2013-07-16
    FF 19.0

    I have a ListGrid for a field called "count" and I do this to see its sum:
    Code:
    final ListGrid listGrid = new ListGrid ();
    listGrid.setSelectionType (SelectionStyle.SINGLE);
    listGrid.setAutoFitData (Autofit.BOTH);
    listGrid.setAutoFitMaxHeight (400);
    listGrid.setCanSort (true);
    listGrid.setCanGroupBy (true);
    listGrid.setShowRowNumbers (true);
    listGrid.setShowGridSummary (true);
    listGrid.setShowGroupSummary (true);
    listGrid.setFields (listGridFieldList);
    listGrid.initialize ();
    ...
    listGridField.setShowGroupSummary (true);
    listGridField.setShowGridSummary (true);
    listGridField.setSummaryFunction (SummaryFunctionType.SUM);
    If all rows have data, then the ListGrid shows the sum.
    However, if a row in the ListGrid does not have data for this particular field, then the ListGrid shows the sum as 0.
    It looks as if the ListGrid is not show the sum unless all rows have a value for that field.
    Is there any way to tell the ListGrid to calculate it anyway?
    Attached Files

    #2
    This was fixed a while ago - please retry with the latest 4.0 build at smartclient.com/builds

    Comment


      #3
      Confirmed working as expected with build 4.0-2013-11-30.

      Comment

      Working...
      X