如何在rad网格页脚中获得总和的总和。
我试过
<telerik:GridNumericColumn UniqueName="Amount" DataField="Amount" HeaderText="Amount" FooterAggregateFormatString="{0}" DataType="System.Int32" Aggregate="Sum">
</telerik:GridNumericColumn>
答案 0 :(得分:0)
int total=0;
for (int i=0; i < list.size(); i++){
total = total + list.get(i).price;
}
Log.e("sum of column", total + " - " );
答案 1 :(得分:0)
根据他们的手册,这应该工作得很好
<telerik:GridNumericColumn UniqueName="Amount" DataField="Amount" HeaderText="Amount" DataFormatString="{0:C}" DataType="System.Double" Aggregate="Sum">
</telerik:GridNumericColumn>