Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Idrissi on Jun 23, 2009 07:42
open dhtmlx forum
dhtmlxScheduler: getEventEndDate

Hello,

I am trying to get the start and end date of an event via scheduler.getEventEndDate(event_id).
code:
....
scheduler.attachEvent("onEventChanged", function(event_id,event_object){
            alert(scheduler.getEventEndDate(event_id));
});
...

But the function throw me an error, the function don't exist for the object scheduler.
Am i wrong? How do we get the date of an event?

Many thanks
Answer posted by Alex (support) on Jun 23, 2009 08:01

hello,

sorry for the misleading information. We will fix this issue. Currently please, use getEvent(event_id).end_date method instead of getEventEndDate as follows:

scheduler.attachEvent("onEventChanged", function(event_id,event_object){    
  alert(scheduler.getEvent(event_id).end_date); 
});

Answer posted by Idrissi on Jun 23, 2009 08:26
Thanks you very much for the quick response !

It works !