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; } }
|
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!
|