search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

onEventResized and onEventMoved

Related article: Angular 4 Restaurant Table Reservation (PHP/MySQL)
Asked by Tom
6 days ago.

I put a DayPilot.Modal.confirm in the onEventResized so when i press "OK" on the confirm form the event will be moved. However, sometime the event will not move until i refresh the page.
I did use "CallBack" on eventMoveHandling and eventResizeHandling too.
Please help.
Regards, Tom.

Answer posted by Dan Letecky [DayPilot]
6 days ago.

If you want the event to be moved automatically you need to use "Update" value for the *Handling properties:

config: any = {
  eventMoveHandling: "Update",
  eventResizeHandling: "Update"

If you handle onEventResize (onEventMove) you can cancel the action by calling args.preventDefault().

The onEventResized (onEventMoved) handler is called when the update is complete (the event has already been moved).

Let me know if the problem persists.

Comment posted by Tom
6 days ago.

Can i use args.preventDefault() for Event Deleted too?

New Reply
This reply is
Your name (optional):