Coro in grid acting strangely

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!

Please, try to call
mygrid.init();
mygrid._colls_loaded = true
after the init of the grid.

Thanks Sematik that works now!

I have another problem: both the SORTING and the #text_filter for this column act on the VALUES and NOT the labels, i.e. if I type “shoes” In the #text_filter header it finds nothing, but if I type “1” (the key for shoes) then it finds them…
If I try to sort the column it sorts them by key (1,2,3) and NOT by labesl (“shirts”; “shoes”, “trowsers”)

please, try to use the select_filter instead of the text_filter.
sorting: unfortunately this is the expected behavior. You need to perform the custom sorting function for your column, or reassign values-titles properly.
docs.dhtmlx.com/grid__sorting.h … ngfunction