Combo in a Grid: populate though script?

Still trying to figure out how to add an editable multi-select combo to a grid.
Is it possible to add data to a combo in a grid without external xml?
This works for regular combo but not for combo in a grid:

subgrid.setColTypes(“combo”);
for (var i = 0; i < ar.length; i++) {
grid.getCombo(0).put(ar[i], ar[i]);
}

How do I make it work for combo in a grid?

Thanks!

Please, try to use addOption() method

combo.addOption(key,text);

Here you can find a tutorial about using combo exCell in grid:
docs.dhtmlx.com/doku.php?id=dhtm … cell_combo

addOption doesn’t work. It seems to be working only for combo that is not part of a grid OR for cellCombo but not for column combo. Even if the tutorial you sent, it shows that only loadXML is possible…

Any other way?

Unfortunately the issue cannot be reconstructed.

Te following code works well for us":

mygrid.init() combo = mygrid.getColumnCombo(0); combo.readonly(true, true) combo.addOption("1", "NO"); combo.addOption("2", "YES"); mygrid.load(url)

If issue still occurs - please, provide any kind of sample of your code.