DHTMLX Suite 4.4
In a table column of my SQL DB, each row entry has a value of 0-3 stored as an integer. These each represent a “type” in my application. In the Grid I have a column(3) type of coro that is populated with the results of this SQL column via render_table. The data from the SQL DB is correctly being populated to the Grid but,
My Grid code contains the following:
typeCombo = appGrid.getCombo(3);
typeCombo.put(0,"Reserved");
typeCombo.put(1,"Application");
typeCombo.put(2,"Form");
typeCombo.put(3,"Report");
What I expected was for the SQL data to match the combo value and display the label in the Grid cell.
Example: SQL Data = 1 matches combo value 1 resulting in “Application” being displayed.
This is what I expected:
<select class="dhx_combo_select" style="width: 150px; left: 1592px; top: 166px;" size="6">
<option value="0">Reserved</option>
<option value="1">Application</option>
<option value="2">Form</option>
<option value="3">Report</option>
</select>
This is what I am getting:
<select class="dhx_combo_select" style="width: 150px; left: 1592px; top: 166px;" size="6">
<option value="0">0</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">Report</option>
</select>
Currently SQL rendered values to the column are, 0,1 and 2.
Thank you,