Hi,
I’m trying to load options into a DHTMLX combo cell embedded in a DHTMLX grid, and load it through JavaScript.
I have the following code:
var comboStreet = mygrid.cells(rowId,colIdx).getCellCombo();
comboStreet.clearAll();
comboStreet.addOption("1","Ash Street");
comboStreet.addOption("2","Baker Street");
. . .
But the cell doesn’t load.
I have DHTMLX professional version v3.5, and I’m using the following grid/combo/excell libraries:
<script src='./dhtmlx/dhtmlxGrid/codebase/dhtmlxcommon.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/dhtmlxgrid.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/dhtmlxgridcell.js'></script>
<script src='./dhtmlx/dhtmlxCombo/codebase/dhtmlxcombo.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_validation.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_json.js'></script>
<script src='./dhtmlx/dhtmlxGrid/samples/common/data.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_srnd.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_filter.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/ext/dhtmlxgrid_form.js'></script>
<script src='./dhtmlx/dhtmlxGrid/codebase/excells/dhtmlxgrid_excell_combo.js'>
Please help? Thanks.