Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Stefan Riedel-Seifert on Feb 25, 2009 00:38
open dhtmlx forum
Combobox - Deselect

Hello,

i want to deselect a combobox, after an user has selected a value, but i cannot find an api-method.

Regards,
Stefan

Answer posted by Support on Feb 25, 2009 02:02
You can use
    combo.unSelectOption();
Answer posted by Stefan Riedel-Seifert on Feb 25, 2009 04:03

... i have tried this beforr: it causes a javascript error: 'this._selOption' is null or not an object

 

Best regards, Stefan

Answer posted by Support on Feb 25, 2009 05:29
Which version of dhtmlxcombo you are using? In case of latest codebase there is no way for such error. 
If you are using older version - try to update to latest codebase.
Attachments (1)
Answer posted by Stefan Riedel-Seifert on Feb 25, 2009 05:50

... no :-(. May i send you the complete page via e-mail (<support@dhtmlx.com>)?

Best regards,
Stefan

Answer posted by Stefan on Feb 25, 2009 05:58

... the error occurs at (firebug)

this._selOption is null
selectOption()(0, false, true)dhtmlxcombo.js (line 873)
 this._selOption.RedrawHeader(this);
Answer posted by Support on Feb 25, 2009 06:14
>>... no :-(. May i send you the complete page via e-mail (<support@dhtmlx.com>)?
yes please, because the same file works correctly in similar use-case