Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Wasi on Feb 10, 2009 21:31
open dhtmlx forum
DHTMLX COMBO SET SIZE PROPERY`

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.
Answer posted by Alex (support) on Feb 11, 2009 02:42

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.