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



You can use
combo.unSelectOption();


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



 



Best regards, Stefan

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.

dhtmlxcombo.zip (9.38 KB)


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



Best regards,
Stefan


… the error occurs at (firebug)

this._selOption is null
selectOption()(0, false, true)dhtmlxcombo.js (line 873)
_selectOption()(click clientX=245, clientY=79)dhtmlxcombo.js (line 898)
 this._selOption.RedrawHeader(this);

… no :frowning:. 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