Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Rene Christensen on Nov 04, 2007 05:23
open dhtmlx forum
Combobox displaying multiple rows

In regards to my question on: Combobox displaying multiple rows

I'll try to ask in a 3rd way then :)

It is NOT THE FILTERING I am requesting. I know the filtering is there, I use it and it's great, exactly whats needed. Forget about the filtering :-)

My page looks like this:

+-----------------------------------------------+
Input field: | |
+-----------------------------------------------+

+-----------------------------------------------+
Options: | Option 1 |
| Option 2 |
| Option 3 |
| Option 4 |
| Option 5 |
| Option 6 |
+-----------------------------------------------+

I want the options to be listed ALWAYS, not as a drop down selector but

What I am asking for is the equelant of SIZE="" option from a SELECT box.

HTML 4.0 description: http://www.w3.org/TR/html4/interact/forms.html#h-17.6

Is there any way to accomplish that with dhtmlXCombobox?
Answer posted on Nov 05, 2007 02:47
>>I want the options to be listed ALWAYS, not as a drop down selector but

You need to modify existing code, comment lines which hide option list and set it position to fixed area instead of absolute position.

>>dhtmlXCombo.prototype.closeAll = function()
this function closes active selectbox, so its content need to be commented in your case.


>>What I am asking for is the equelant of SIZE="" option from a SELECT box.
There is no such entity, but you can achieve same effect by adjusting next style in dhtmlxCombo.css

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