View Full Version : [CLOSED] Sum all values of a column and display them in DisplayField

Mar 02, 2015, 4:02 AM

Mar 02, 2015, 1:34 PM
Hi @osef,

but It doesnt works

Please clarify what happens instead. A wrong sum? A JavaScript error? Something else?

A runnable test case would be appreciated. In this way, we could help as soon as possible.

Mar 03, 2015, 1:20 AM
Ok I can sum the values of column, but I do the job in this event

<AfterRender Handler="GetColumnTotal(this,6);" Delay="2000" />

this event runs in the grid but I need to put delay 2000 because the data is a lot and without delay doesnt work, I need to run this function when the store ends to load data, thanks

Mar 03, 2015, 10:09 AM
I would try to handle a Store's Load event.

Mar 03, 2015, 3:54 PM
Yes, it works, thanks

Mar 13, 2015, 11:19 AM
<script type="text/javascript">
var getRate = function(grid, column) {
var values = [];
var rate = 1;
var store = grid.getStore();
grid.getStore().each(function(record) {
for (var x = 0; x < values.length; x++) {
rate = values[0];
return rate;

<ext:Parameter Name="GridRate" Value="getRate(grdPurchaseVoucher, 'ExchangeRate')"
Mode="Raw" />