Welcome Guest Search | Active Topics | Sign In | Register

I need to show sum to in footer template Options
Abid
Posted: Thursday, April 14, 2016 8:56:38 AM
Rank: Newbie
Groups: Member

Joined: 3/15/2016
Posts: 6
In the below function I got Summary total in column wise I need to show this sum to in footer template.
kindly help me to on this matter.

In Grid I am calling ClientSideOnLoad="Summary".


function Summary() {

var grid = eo_GetObject("Grid1");
var colCount = grid.getColumnCount();
var rowCount = grid.getItemCount();
var sum = 0;
for (i = 1; i < colCount; i++) {
for (RI = 0; RI < rowCount; RI++) {
var a = parseFloat(grid.getItem(RI).getCell(i).getValue());
sum = sum + a;

}
alert(sum);
sum = 0;
}
}

eo_support
Posted: Thursday, April 14, 2016 10:48:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,229
Hi,

There is no way for you to put the sum in the footer area directly through the Grid. You can either place some HTML element on top of the Grid over the footer area and then update that element directly, or use a fixed bottom row so that the bottom row does not scroll.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.