Đ°

Creating a Combo in a toolbar via XML


#1

Is it possible to insert a combo box in a toolbar via XML. I see examples with buttonSelect like below:

I need a way to select an item from a list and have the selected item shown (like a select or combo box does)


#2

You can olny do the next:

dhxToolbar.addText('cb', 0, '<div id="combo" style="width:200px; height:30px;">'); dhxCombo = new dhtmlXCombo("combo", "cmb", 200); dhxCombo.loadXML("../___xml/checkbox.xml");
And to select this option in combo xml.


#3

Worked great… thanks!


#4

You are welcome!


#5

can i have the format of checkbox.xml ?


#6

This is the default xml format of the options data for the dhtmlxCombo:
https://docs.dhtmlx.com/combo__adding_options.html#fromtheserverside