Hi-
I have a dhtmlxGrid with a single column of type “co”. I have set the options to be:
var opts= {
1: “one_value”,
2: “two_value”
};
When I iterate over the grid in javascript to create a json object with all the data in it. I use this code:
vals = [];
mygrid.forEachRow(function(id){
val = {
i: id,
v: mygrid.cells(id,0).getValue(),
};
vals.push(val);
});
Except that the getValue is getting the value, when with a combo box I want the key. So I want the “1” not the “one_value”. Any ideas? Thanks!