Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gabriel Fojo on Nov 27, 2009 10:36
open dhtmlx forum
Scheduler -scheduler.templates.event_bar_text and showLightBox

Hi,

I have this code in the scheduler:

scheduler.templates.event_bar_text=function(start,end,event){
var tip=scheduler.templates.hour_scale(start)+" "+event.text;
return "<span title='"+tip+"' >"+event.text+"</span>";
}

The problem is that the lightBox is not called anymore. I tried adding a onclick="scheduler.showLightBox()" but is not working.

Thanks
Answer posted by Alex (support) on Nov 30, 2009 01:49

Hello,

to show lightbox you should pass the event id as a parameter:

scheduler.showLightbox(eventId);

Answer posted by Stanislav (support) on Nov 30, 2009 02:35
Oncoming dhtmlxScheduler 2.1 will resolve issue with incorrect reactions when custom classes are used in event's text. It will be released in few days.