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:
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?
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);
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?
Comment