Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jason Hughes on Mar 30, 2009 13:31
open dhtmlx forum
Combo Box

I am trying to use the combo box as in the XML below:

<cell text="" type="combo" xmlcontent="1" autocomplete="1">
<option value="C1">C1</option>
<option value="C2">C2</option>
<option value="C3">C3</option>
</cell>

But when the text = "" I get an error. getOptions(...).text is null or not an object. I tried updating to v2.0 and v2.1. When I did that the error went away but when I click on the combo and then click off, the row shows as being updated by the dataprocessor.
Answer posted by Alex (support) on Mar 31, 2009 06:47

Please, try to make the following change in the latest version of dhtmlxgrid_excell_combo.js.

Please, locate line

this.cell.combo_value = val.firstChild.data

and replace it with:

this.cell.combo_value = val.firstChild.data?val.firstChild.data:"";

Answer posted by Jason Hughes on Mar 31, 2009 12:17
That didn't seem to work I am using the v2.1 of the combo.
Answer posted by Alex (support) on Apr 01, 2009 06:02
Please, try to add also the hightlighted line:

this.cell.combo_value = val.firstChild.data?val.firstChild.data:"";
if(this.cell.combo_value=="") this.cell._clearCell=true; 


If problem still persists, please contact us at support@dhtmlx.com, provide your ref number - and we will send the fixed dhtmlxgrid_excell_combo.js