netsam
April 24, 2012, 4:18pm
#1
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.
Ilya
April 25, 2012, 3:58pm
#2
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:
Open dhtmlxscheduler_editors.js file
Locate “a.b = new dhtmlXCombo(” part. Should be something similar.
Add new line
a.b.setOptionHeight(165);
Kind regards,
Ilya
netsam
April 27, 2012, 10:05am
#3
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?
Ilya
April 27, 2012, 1:22pm
#4
Hello,
Yes, try following:
a._combo=new dhtmlXCombo(a,b.name,a.offsetWidth-8);
a._combo.setOptionHeight(165);
Kind regards,
Ilya
netsam
April 29, 2012, 10:05am
#5
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 ?
Ilya
April 30, 2012, 12:29pm
#6
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
netsam
April 30, 2012, 9:27pm
#7
Now it’s ok, thanks a lot.