Display units name issue

Hi,
i have a problem with unit name on tooltips and header of events.

This is my code
Tooltip

scheduler.templates.tooltip_text = function(start,end,event) { return scheduler.getLabel("section_id", event.section_id)+"<br/><b><%=bundle.getString("lblSchedulerTipoScelta")%></b>:"+event.text+"<br/><b><%=bundle.getString("lblDataIniScheduler")%></b> "+scheduler.templates.hour_scale(start)+"<br/><b><%=bundle.getString("lblDataFineScheduler")%></b> "+scheduler.templates.hour_scale(end); };

Event header

[code]scheduler.templates.event_header=function(start,end,event){
var ret = “”;
ret += (event.isIntervento==“true”?“”:“”);
ret += scheduler.getLabel(“section_id”, event.section_id)+" “+scheduler.templates.hour_scale(start)+”/"+scheduler.templates.hour_scale(end);

  	        return ret;
  	};
  	scheduler.templates.event_bar_text=function(start,end,event){
  	        return scheduler.getLabel("section_id", event.section_id)+" "+clearTextFromHtml(event.text);
  	};[/code]

It seems that section name cant be displayed until i create a new event.


before open a new event

after open a new event

Can you help me?

issue solved:
you have to call scheduler.config.lightbox.sections= when you initialize the scheduler and not only when light box is opened :slight_smile: