Add the following JS functions to the page:
// Calculate the total of one column
// Grid is the ID of webgrid, and cell is the object of a cell in the column you want to calculate
Function sumcolumn (gridid, cell)
{
VaR rows = igtbl_getgridbyid (gridid). Rows;
// If you do not pass the cell object, you can also pass the cellid to get its cell object.
// Var cell = igtbl_getcellbyid (cellid );
VaR column = cell. column;
var coltotal = 0;
If (rows. length >=1.0)
{< br>
for (VAR I = 0; I {< br> coltotal + = rows. getrow (I ). getcellbycolumn (column ). getvalue ();
}< br>
var element = cell. element;
If (element. parentnode. parentnode. nextsibling)
{< br> var footer = element. parentnode. parentnode. nextsibling. childnodes [0]. childnodes [element. cellindex];
footer. innertext = igtbl_mask (gridid, coltotal. tostring (), 14, "¥ ###,###,## 0.00");
}< BR >}