How to insert a row in a grid with a column type “coro” and defining percell combo values?
When I load the grid, I put in the xml code the options of the combo.
After that I need to add some rows and for each row insert a different combo.
I use this code:
grid.addRow(‘rowid’,‘0’);
var combo = grid.getCombo(0);
combo.clear();
combo.put(‘0’,‘1st’);
combo.put(‘1’,‘2nd’);
combo.put(‘2’,‘3th’);
combo.put(‘3’,‘4th’);
grid.cells(‘rowid’,0).setValue(0);
combo.save();
The result is I have a combo width 5 entry where the last is “1st” with a empty key not 0.
Thanks