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
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;
})