Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by samuel on Sep 28, 2009 09:13
open dhtmlx forum
onEditCell problems

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.
Answer posted by dhxSupport on Sep 29, 2009 09:43
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.