Comment posted by Benedikt
3 years ago.

Thanks for your fast reply :)

Do you have any workaround or idea, how to solve this? We would like to combine this with the make draggable. E.g. create a "hidden" div and make it draggable. After that, we would like to start the drag&drop process with that hidden div.

Comment posted by Dan Letecky [DayPilot]
3 years ago.

And what's the use case for this? Normally, it's better to keep the drag handle close to the item being dragged.

The makeDraggable() lets you specify a custom handle element (which can be different from the item) but it has to be unique for each item.

Comment posted by Benedikt
3 years ago.

We are using .net Web View 2 for WPF and want to drag and drop from outside the "browser" by using the JavaScript interops. So we stop the dragging from the windows handler and start it in the daypilot.

Comment posted by Dan Letecky [DayPilot]
3 years ago.

There is a legacy (and unsupported) method which you can use to activate external dragging:

const options = {
  id: 1,
  duration: 60, // minutes
  text: "Event",
  data: {} // object with custom properties
};
DayPilot.Scheduler.startDragging(options);

You might also want to take a look at this:
https://code.daypilot.org/63946/javascript-scheduler-dragging-items-from-desktop

This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.