Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Kyle on Jul 04, 2009 19:56
open dhtmlx forum
dhtmlxscheduler printing event properties

Does anyone know if there is an easy way to show event details (i.e. start_date, end_date, event title, etc.) simply in a div or input field when the event is clicked on in the calendar.  I've reviewed the api, but I am having trouble making heads or tails with it.  Any help is appreciated.

Thanks.
Answer posted by Support on Jul 06, 2009 02:08
You  can use code similar to the next

scheduler.attachEvent("onClick",function(id){
    var ev = scheduler.getEvent(id);
    
    some_element1.value = ev.start_date;
    some_element2.value = ev.end_date;
    some_element3.value = ev.text;
    // any other property of event, can be fetched in the same way.

    return true;
})