Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Fabio on Oct 31, 2007 02:32
open dhtmlx forum
How to set size of DHTMLcombobox

I downloaded DHTMLcombobox.

How can I set the size (i.e. numbers of rows) of the object. I'd like to see the object as a listbox.

I saw I must change the dhtmlxcombo.js file, but I don't know how to change it

May someone help me please?

Thanks a lot!!
Answer posted on Oct 31, 2007 02:56
>>How can I set the size (i.e. numbers of rows)

There is no such value, but you can set custom height of list, it is defined in dhtmlxcombo.css

.dhx_combo_list{
   position:absolute;
   z-index:30;
   overflow-y:auto;
   overflow-x:hidden;
   border:1px solid black;
   height:100px;               << this is it!
   font-family: Arial;
   font-size: 9pt;
   background-color: white;
}


>> I'd like to see the object as a listbox.

Combo can be switched to readonly mode by
    combo.readonly(true);