Combo options from xml not showing up inside combo

Hello,

I have successfully loaded combo box data from db. However, I do not have a drop down arrow in my combo box and if I click on the box the contents that should be in the drop down appear on the screen in the top left corner instead of inside the box with a scrollbar…

Any ideas what I might be doing wrong?

Many thanks!

Cheers!

Hello
If you don’t see the arrow image - you haven’t set ut.
Plase the next line before the combo init:

window.dhx_globalImgPath="../dhtmlxCombo/codebase/imgs/";

I have done that and still do not see the arrow…
Is that also why the combo box content is not in the combo box with a scrollbar?

Could you provide us direct link or completed demo to reproduce your issue?
docs.dhtmlx.com/doku.php?id=othe … leted_demo

Hi,

I just wanted to say that I sent you a link in a PM. I also noticed an error in my code and have fixed it, but I still don’t have the combo box behaving as it should:

var z=new dhtmlXCombo("combo_zone3","alfa3",200); z.addOption([ {value: "a", text: "option A", img_src: "../../DHTMLX/dhtmlxCombo/codebase/imgs/blue.gif", css:"color:red;"}, {value: "b", text: "option B", img_src: "../../DHTMLX/dhtmlxCombo/codebase/imgs/green.gif"}, {value: "c", text: "option C", img_src: "../../DHTMLX/dhtmlxCombo/codebase/imgs/red.gif"} ]);

OK,
By recopying in all the imgs I now see the blue arrow…but it is below the box and the content is not in the combo box…

Hello [again],
My corrected and simplified code below. The “Option A, Option B and Option C” continue to pop up outside of the combo box and the arrow is below the combo box.

??

Thanks again–would love to get this working…

[code]

[/code]

Hello once again,

Just to say the code no longer throws an error, however, even when I copy and paste your sample code (dhtmlx.com/docs/products/dht … tions.html) I get combo boxes with the drop down arrow image below the box and when you click on the arrow image, the contents of what would have been in the drop down appears in the top left of page.

So, I really don’t understand what I could be doing wrong…???

Many thanks again for your help!

I wanted to let you know that it now works after reloading the 3 main dhtmlxcombo files.

Thanks for your help.

Ok :slight_smile: