coro populate

I have the following code:

mygrid.setOnEditCellHandler(rvalid);
function rvalid(stage,rowId,cellInd){
if(stage==0){
for(i=0;i<vals.lenght;i++)mygrid.getCombo(cellInd).put(vals[i].toString(),vals[i].toString());
}
}

I expect that when I edit the cell (coro) to see the items generated by the code, but is not working.
Am I doing something wrong or how can I refresh the coro ?

Tanx

Code works, there is a typo in your code

    >>for(i=0;i<vals.lenght;i++)

    for(i=0;i<vals.length;i++)