Calculated columns (cell formula)
Using the below link I am using this method in my grid which adds up a Nett & Disc row into a Total. This works great going accros the grid and I now have lots of flexiablty with calcuations across the grid.
http://www.activewidgets.com/javascript.forum.20911.6/calculated-columns-cell-formula.html
I now need to be able to show column totals.
I have really tried and have managed to get the column total into function and then display the result of the function in a varailable which I can then display in a totals block.
However this total dosen't refresh when the grid changes.
Please help!!
http://www.activewidgets.com/javascript.forum.20911.6/calculated-columns-cell-formula.html
I now need to be able to show column totals.
I have really tried and have managed to get the column total into function and then display the result of the function in a varailable which I can then display in a totals block.
However this total dosen't refresh when the grid changes.
Please help!!
function sum01(col, row){
var cell1 = this.getCellValue(3, 0);
var cell2 = this.getCellValue(3, 1);
var cell3 = this.getCellValue(3, 2);
var cell4 = this.getCellValue(3, 3);
var cell5 = this.getCellValue(3, 4);
var cell6 = this.getCellValue(3, 5);
return cell1 + cell2 + cell3 + cell4 + cell5 + cell6;
}
obj.setCellData(sum01,5, 6);
var nett = obj.getCellValue(5, 6);
Jez
April 4,