Combobox displaying multiple rows

In regards to my question on: Combobox displaying multiple rows



I’ll try to ask in a 3rd way then :slight_smile:



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 :slight_smile:



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: w3.org/TR/html4/interact/forms.html#h-17.6



Is there any way to accomplish that with dhtmlXCombobox?

>>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;
}