Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Leonardo on Aug 30, 2009 07:51
open dhtmlx forum
How get end_date and start_data when override scheduler.showLightbox

Hi.

I'm trying to customize the lightbox ..

My question is about how to get the "end_date" and the "start_data" from a event that I've just created, I have only the "id" of this new event, and I'm trying to use the event "onEventCreation" to get them.. but it is not working for me.

Thanks in advance.

Answer posted by Support on Aug 31, 2009 02:50
You can use 
    var event = scheduler.getEvent(id)
to access the event object, which has all properties of related event

>>and I'm trying to use the event "onEventCreation" to get them
It may be better to override showLightbox method with custom function instead. 
The showLightbox method also receives ID of event and it occurs each time when lightbox need to be shown ( the onEventCreation  may be called when new event created by drag and there is no need to show the details form )