hi all,
anyone know how to make MarkedTimespan move dynamicaly based on event start_date end event end_date that stored on sql.
the purpose is just to mark checkpoint on that time in timeline view. so if the event time is adjusted, then the mark will also automatically follow the event.
already play with scheduler.getEventStartDate(id) and scheduler.getEvent(id).start_date but none work.
this is one of sample of code get the date from event id 71, this is doesnt work :
scheduler.addMarkedTimespan({
start_date: new Date(scheduler.getEventStartDate(71)),
end_date: new Date(2013,08,21,04,35),
css: “yellow_section” });
There is no way to make such thing fully automatic.
You can attach to onEventChanged handler docs.dhtmlx.com/scheduler/api__s … event.html
and from it adjust the position of marked timespan ( delete old one, and create the new one in the necessary position )