Categories | Question details Back To List | ||||||||
ComboBox - Empty entries when list containes less than 4 entries Hello, when the combobox contains les than 4 entries, empty list entries will be displayed. You can see this, when using data.xml in samples with following: <?xml version="1.0" ?> <complete> <option value="1">one</option> <option value="2">two</option> </complete> Best regards, Stefan Answer posted by Alex (support) on Mar 10, 2009 03:03 Hello, There issue is not produced locally. Please, provide the sample which demonstrates it. Answer posted by Stefan on Mar 10, 2009 03:21 hello,
as described:
1) Download ComboBox from your Page or take it from the EnterpriseSuite2008 2) Folder dhtmlxCombo\samples\initialization contains data.xml Changes it to <?xml version="1.0" ?>
<option value="1">one</option> <option value="2">two</option> </complete>
3) Start combo_init.html in this folder
4) Look at the attachment
Best regards, Stefan
Attachments (1)
Answer posted by Alex (support) on Mar 10, 2009 04:27 I have checked the screenshot you provided. The list with options is not empty - it shows all options (two in your example). Probably you meant that there is additional space in the list. This behavior is correct, as, by default, combo list has fixed size. But you can try to use auto height mode (dhtmlxcombo_whp.js must be included): combo.enableOptionAutoHeight(1); Please, see the sample in the combo package dhtmlxCombo/samples/options/combo_auto_size.html
|