combobox problem in the grid.

I’ve got some trouble with grid.

I got a data from the server(oracle) such like above…
[
{“programId”:“1”,“programType”:“0010”,“programName”:“Menu”,“programDesc”:“Menu”,“optionalType”:“Internal”,“status”:“N”,“codeName”:“0400”,“optionalName”:“0010”},
{“programId”:“2”,“programType”:“0020”,“programName”:“Menu2”,“programDesc”:“Menu2”,“optionalType”:“External”,“status”:“N”,“codeName”:“0500”,“optionalName”:“0020”},
]

and then sync grid

var dataStore = new dhtmlXDataStore();
dataStore.parse(result);
dataGrid1.sync(dataStore,function(){setStyleforGrid();});

so far so good…

but i have to use combobox in grid…

i can see combobox when i did doubleclicked at a grid thought.

that combobox has same value and same text

i’d like make a combobox that such like text

one more question!

how to add value to the combobox on the grid.

is it possible like this?

for example:

tmp = “”
tmp += “menu1”
tmp += “menu2”
tmp += “”

var cell = dataGrid1.cells(rowData[i], dataGrid1.getColIndexById(“menuId”));
cell.setValue=tmp;

Thank you!

Here you can find the tutorial about using combo in the grid.

co/coro exCells:
docs.dhtmlx.com/doku.php?id=dhtm … n_from_xml

combo exCell:
docs.dhtmlx.com/doku.php?id=dhtm … cell_combo