Get the event id when dropping another event on it + hover

Hello,

I’m dropping an event on another, i need to

  • Get the id of the event i’ve dropped on .
  • Change the background color of the event i’m hovering on it.

DO you have any idea, please ? Maybe you already have done that ?

I’ve tried onBeforeEventChanged but still can’t get the id of the survoled event or change his color…

Explanation : I’m trying to drop on, another event : I need the ancient event to change color before drop and to get the id of the ancient event

Thank a lot :stuck_out_tongue:

Hi,
Please use event_class template to change the event color.

To get events which occurs together with dragged event, you can use onEventDrag event and start_, end_ dates of dragged event to specify the time for getEvent() method. Then find required event in the array and update it’s color.
Example how to highlight dragged event: docs.dhtmlx.com/scheduler/snippet/8996139b