Scheduler - Drop from 3rd party control

Hi,

Is it possible to drop items from a 3rd party control onto a scheduler and create a new event for the dropped item? Or at are there at least an event I can hook into to do that?

Regards
Jacques

Hello,
it’s possible, but require some custom coding.
In order to drop an appointment into the scheduler you’ll have to manually catch end of d’n’d over the calendar area(you can use either mouseup or html5 drop event, depending on how d’n’d is implemented), retreive pointed date of the calendar and create new appointment at that time.
For example, handler may look following:[code]function(e){
var start_date = scheduler.getActionData(e).date;
var end_date = scheduler.date.add(start_date, 1, “hour”);

scheduler.addEvent({
	text:"New event",
	start_date:start_date,
	end_date:end_date
});

}[/code]Where ‘e’ is a browser event object
docs.dhtmlx.com/scheduler/api__s … ndata.html