Popup on ComboButton

Hi,

I have a layout control in with a ribbon on the top. In the ribbon are many controls, but the one I care about is the comboButton. The comboButton has some items, but I would like for the popup to appear below the comboButton when a specific item in the comboButton is clicked.

What is the best way to do this?

When I have tried somePopup.show(570,0,400,300), the popup is more than an inch below the ribbon.

Cheers,
Alex

Hi
You can just get a combo from ribbon the next way:

[code]// add once, make sure dhtmlx is loaded
dhtmlXRibbon.prototype.getCombo = function(id){
var item = this._items[id];
if (item == null || item.type != “buttonCombo”) return null;
return item.combo;
};

// to get combo
var combo = myRibbon.getCombo(“comboItemId”);[/code]

Hi Darya,

Thanks.

How do I attach the popup to an item in the comboButton?

Cheers,

Alex

To get combo’s image you need to use this:
combo.DOMelem_button
To get combo’s name (if you need) you can use this:
combo.conf.form_name
How to init popup on custom object you can look here:
dhtmlx.com/docs/products/dhtmlxP … bject.html