Fixed event start and end times only assignment allowed

Hi

I have a list of events that can be allocated to anyone but its start and end times must remain fixed.

The idea is that these events must happen at those times. I would like for the drag and drop behaviour to function as per normal (in 03_tree.html sample) but the event would “snap” to its default start and end times once the drop is complete.

In the onExternalDragIn handler you can modify start and end date of event in any custom way

var start = scheduler.getEvent(id).start_date; scheduler.getEvent(id).start_date = some_logic(start);

thanks, but I’m not using an external control so this event does not fire.

What I basically wanted to know is what javascript events in particular would give you the original values before the item change and what javascript events would allow you to change the item start and end dates back.

I managed to get a solution by saving the start and end dates in “onBeforeDrag” and then changing them back on the “onEventChanged”, the advantage of using the “onEventChanged” is that it would also prevent users from editing this in the lightbox(though I suppose I can make it readonly in the lightbox).

I am not sure if this is the right way to do this, can you comment from a design perspective ?