Categories | Question details Back To List | ||
Grid Update Math Calculation Hi All function doOnCellEdit(rowId,cellInd) { var rowIndex=mygrid.getRowIndex(rowId); var sum=0; for(var i=4;i<=10;i++) { sum+=parseFloat(mygrid.cells(rowId,i).getValue()); } mygrid.cells(rowId,11).setValue(sum); currently the above function is called using mygrid.setOnEnterPressedHandler(doOnCellEdit); i dont want it on pressing enter, but i want to call this function on each cell update without pressing enter. can any one help me Answer posted by Support on Jul 02, 2008 02:48 >>but i want to call this function on each cell update You can use onEditCell event mygrid.attachEvent("onEditCell",function(stage,id,ind){ if (stage==2) // edit end doOnCellEdit(id,ind); return true; }) |