Hi,
I want to display the lightbox as soon as scheduler is loaded. This is to spare user from clicking on scheduler to get the lightbox popup. I tried to lookup the documentation but found no API for it.
Please help.
Thanks,
Chetan
Hi,
I want to display the lightbox as soon as scheduler is loaded. This is to spare user from clicking on scheduler to get the lightbox popup. I tried to lookup the documentation but found no API for it.
Please help.
Thanks,
Chetan
In latest dev. version you can use
scheduler.addEventNow();
as for stable 2.1 version, there is no simple way ( it possible to add event by using addEvent method and call showLighnbox against newly created event )
Hi chetankpatil,
You could try to use below codes I used now:
var evID = scheduler.uid();
scheduler._loading=true;
var start = new Date();
start.setHours(0);
start.setMinutes(0);
start.setSeconds(0);
var end = new Date();
end.setHours(4);
end.setMinutes(0);
end.setSeconds(0);
scheduler.addEvent(start, end,scheduler.locale.labels.new_event,evID,{resources:scheduler.locale.labels.new_resources,organizer:scheduler.locale.labels.new_organizer,timeoffset:(new Date()).getTimezoneOffset()});
scheduler.callEvent("onEventCreated",[evID,scheduler.getEvent(evID)]);
scheduler._loading=false;
scheduler._new_event = new Date();
scheduler.showLightbox(evID);
In this case my time internal was 4 hours.
But I’d like to use scheduler.addEventNow() in my code if I had chance to get the latest debug or release dhtmlxscheduler codes.
Best wishes,
Jundo520
Hey jodo520,
Thanks buddy. It worked