Scheduler - Event On After Drag

Hey guys,
can you please help me, I need a function onDrag like in u’re dhtmlxgrid in the scheduler instead of onBeforeDrag, because the scheduler should do something if a event was dragged and user realeases the mouse button.

regards
schmiddi

Hello,

If event was changed with a drag operation when onEventChanged will be called afterwards, you can use it.

Best regards,
Ilya

But I dont need a method for all changes, I just need it for the beginning date.

Hello,

But using drag you can change not only start date but end_date or event both of them.
Anyway you can set some kind of flag that event was changed using drag and drop and then assert it in the onEventChanged event.

Best regards,
Ilya

Yeah, how to do that? I know that both dates are always changed, but how to set those flags?

regards

Hello,

Actually it’s possible to do even easier using one of the internal properties:

scheduler.attachEvent("onEventChanged", function(event_id,event_object){ if(scheduler._drag_mode){ // or you can check even further: scheduler._drag_mode == 'move' || scheduler._drag_mode == 'resize' // custom logic } });
Best regards,
Ilya