Number of Items in Combo

Hi, I would like to visualize more items in a combo that is part of a scheduler lightbox.


scheduler.config.lightbox.sections=[
{name:“paziente”, options: scheduler.serverList(“x_pazienti”), map_to:“x_pazienti_id”, type:“combo”,
image_path: “dhtmlxcombo/codebase/imgs/”, filtering: true, /script_path: “php/complete.php”,/ cache: false},
{name:“time”, height:72, type:“time”, map_to:“auto”}
]

Is it simple? I searched in the forum but I didn’t find a solution. Thank you.

Hello,

While it’s easy to do with the combo itself: combo.setOptionHeight(165);
It becomes trickier if we speak about combo as lightbox section in scheduler. The easiest way for now would be edit original source code:

  1. Open dhtmlxscheduler_editors.js file
  2. Locate “a.b = new dhtmlXCombo(” part. Should be something similar.
  3. Add new line
    a.b.setOptionHeight(165);

Kind regards,
Ilya

Hi, thanks for the answer.
The only part of code similar to yours in the file you indicated me is:

scheduler.form_blocks.combo={
render:function(a){
var d="";
d+="

";
return d
}
,set_value:function(a,d,c,b){
a._combo&&a._combo.destructor();
window.dhx_globalImgPath=b.image_path||"/";
a._combo=new dhtmlXCombo(a,b.name,a.offsetWidth-8);
a._combo.enableFilteringMode(!!b.filtering,b.script_path||null,!!b.cache);
ect…

Do I have to modify this part of code?

Hello,

Yes, try following:

a._combo=new dhtmlXCombo(a,b.name,a.offsetWidth-8); a._combo.setOptionHeight(165);
Kind regards,
Ilya

It doesn’t work.

When I put this:


a._combo=new dhtmlXCombo(a,b.name,a.offsetWidth-8);
a._combo.setOptionHeight(165);
a._combo.enableFilteringMode(!!b.filtering,b.script_path||null,!!b.cache);

the combo doesn’t show the items and the height is invariated.

Any suggestions ? :frowning:

Hello,

I am sorry, I’ve missed the requirement part of that API call.
Actually you need to include dhtmlxcombo_whp.js file to the page.

Kind regards,
Ilya

Now it’s ok, thanks a lot. :smiley: