How to use setsize property of dhtmlxcombo for a selected option so that when an option is selected the width of dropdown resize to the selected option length.
There is getActualValue() method. It allows to get a value of selected option:
combo.attachEvent(“onChange”,function(){
var value = combo.getActualValue();
…
})
You can associate a width with each value.