Reload scheduler in select mode after event drag and drop

I have refer this URL–> viewtopic.php?f=6&t=13254&start=0&hilit=after+event+drag+and+drop

but i don’t know how to use “onBeforeEventChanged or onEventChanged” with reload scheduler after event drag and drop.

Can someone give me an example?Please reply as soon as possible.Thank You

Something like next can be used

scheduler.attachEvent("onBeforeEventChanged", function(){ scheduler.clearAll(); scheduler.load(url); });

but beware that it will reload data before event saving in DB
If you need to reload data after saving in db - it can be done as

dp.attachEvent("onAfterUpdate", function(){ setTimeout(function(){ scheduler.clearAll(); scheduler.load(url); },1); })

Works great, thank you!