Advice on preventing event update loop

Hello,

I have a custom sidebar which has date/time fields.

I want to bind the fields to a currently selected event in the scheduler.

I am using onBeforeEventChanged to translate the event object to the input fields.

I am planning on using jQuery to listen for input changes on the fields and send them back to the event object via updateEvent.

However I believe this will cause an update loop…

Am I going in the right direction? Am I using the right event listeners?

Hi,
onBeforeEventChanged is called only after d-n-d related changes. You can listen to
onEventChanged” and use scheduler.updateEvent for updating data in scheduler (the method won’t trigger onEventChange, and won’t send update to the server)