Hello,
I am using the onEditCell function in a grid. However I get the error “c is null” any time i try execution. the function that performs the execution is as below:
function doOnEditCell(stage,id,ind,val) {
//calculate the total charges
if (stage == 2) {
total = 0;
for (i = 1; i <= grdCharges.getRowsNum(); i++) {
if (IsNumeric(grdCharges.cells(i,2).getValue())) {
total += Number(grdCharges.cells(i,2).getValue());
}
}
document.Form.Total_Charges.value = (total).toFixed(2);
}
return true;
}
Please help urgently.
Are you using dynamic smart rendering mode? Such issue may occur if you are trying to access to the cell which is not loaded yet.