how to get Sum of Column total in rad grid footer

how to get Sum of Column total in rad grid footer.

I tried like

<telerik:GridNumericColumn UniqueName="Amount" DataField="Amount" HeaderText="Amount" FooterAggregateFormatString="{0}" DataType="System.Int32" Aggregate="Sum"> 
</telerik:GridNumericColumn>

Answers


int total=0;
for (int i=0; i < list.size(); i++){
    total = total + list.get(i).price;
}
Log.e("sum of column", total + " - " );

According to their manual this should be working just fine

<telerik:GridNumericColumn UniqueName="Amount" DataField="Amount" HeaderText="Amount" DataFormatString="{0:C}" DataType="System.Double" Aggregate="Sum"> </telerik:GridNumericColumn>


Need Your Help

Authorize 2 scopes in Google App Script

ruby google-apps-script

I need to authorize both of these scopes for my Google App Script:

How to create a map instance variable

java map bluej

I've been trying to create a class that will model a scenario I've come up with. It will involve a map with string keys and values.