I have a simple grid, where the first column is a coro
I populate the coro with available values like so:
var cb = recGrid.getCombo(0);
cb.put(1, “shoes”);
cb.put(2, “trowsers”);
cb.put(3,“shirts”) :…
…etc …
then I fill the grid from a connector
recGrid.load(“…/connectors/recGrid.php”);
The connector returns data in the porper format, with the VALUE for the first column (i.e. 1,2 or 3) and NOT the labels (“shoes, etc…”)
WHen the grid is filled, the colum now contains values, and, if I try to select the coro, instead of being filled with labels, it is now filled with values…
i.e, instead of allowing me to select “shoes, trowsers, etc”, the available values are now “1,2,3…”
Where did I go wrong???
THe odd thing is that if I populate the grid from code :
recGrid.addRow(1, [1 “qweqweqwe”, “qweqwee”, “”],0);
recGrid.addRow(2, [1, “asfsdfsadf”, “”, “”],0);
recGrid.addRow(3, [2, “sdfsdf”, “”, “”],0);
recGrid.addRow(4, [3, “sdfsdfsf”, “”, “”],0);
Then everything works fine, the coro shoes the labels and not the values!