Hi Guys,
I am facing a problem while using dhtmlxGrid coro column.
Problem scenario:
Suppose I want specific set of values in any X column of a grid. Therefore I will use coro column type and provide each cell in that column with a plain select box.
For populating values in the select box I will use following of code.
coroColumn = sampleGrid.getCombo(1);
coroColumn.put(“1”,“John”);
coroColumn.put(“2”,“Joseph”);
coroColumn.put(“3”,“Danny”);
coroColumn.put(“4”,“Kieth”);
Now when the grid is rendered, and coro cell is clicked, we find all these values in select box in the given order. Everything till here is fine,
Problem begins from here
At the bottom of the select box, a new select option with empty("") value is inserted and it appears to be selected. And when I select any other value and close the select box and re-open it again that un-wanted empty select option disappears.
Expected Solution
Basically I want that whenever select box is opened,
A. Then the top most value should be highlighted without the overhead of providing the cell value as the top most option value while loading the grid.
OR
B. None of the option value should appear as selected and select box should not be scrolled down to the bottom value.