simon551
IS-IT--Management
- May 4, 2005
- 249
Hi. I'm trying to use a Nitobi open source javascript library and I'm stuck.
This function works to return one value when a user clicks on a cell:
seems to me I could just total up the CellValues to come up with a total like so:
var CellValue += myGridObj.getCellObject(myRow,myColumn).getValue();
but that doesn't work. Any thoughts?
This function works to return one value when a user clicks on a cell:
Code:
function getSelectedValue(GridID)
{
var myGridObj = $(GridID).jsObject;
var myRow = myGridObj.getSelectedRow();
var myColumn = 2;
var CellValue = myGridObj.getCellObject(myRow,myColumn).getValue();
alert(CellValue);
}
var CellValue += myGridObj.getCellObject(myRow,myColumn).getValue();
but that doesn't work. Any thoughts?