Trying to make cell data uppercase

The cell data doesn’t seem to update to the updated Uppercase for some reason. I’ve even got the return true; in the code.



    mygrid.attachEvent(“onEditCell”, function(stage,id,index,new_val){

        if (stage==2)

     return (new_val||"").toString().toUpperCase();

     return true;

    });





Is there something else that could be conflicting with it?


Change your code like this:


mygrid.attachEvent(“onEditCell”, function(stage,id,index,new_val){
if (stage==2) {
mygrid.cellById(id,index).setValue(new_val.toString().toUpperCase());
return true;
}
return true;
});



That worked! Thanks again!