Lock event in section

Hi,

I’ve seen that by including “dhtmlxscheduler_collision.js” I can prevent multiple events in the same section but is there a way to lock an existing event in a section so that I cannot move it to another? Or, when moved, it will return to the original section?

Thanks,

Myrdivar

Hi,
you can use onBeforEventChanged event for this, see the example
docs.dhtmlx.com/scheduler/snippet/ac764d74

Thanks! It worked just fine.

I don’t know now if there’s a lack in the docs:

docs.dhtmlx.com/scheduler/api__s … event.html

For the “onBeforeEventChanged” event I don’t see the “old_ev” parameter of your example in the function.

Hi,
sorry, we’ll correct it in the nearest update of docs (which should be in the nearest days)