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

Modal Box on Event Resize

Asked by Anonymous
6 years ago.

How to display Modal box after resizing the event?

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

You can do it like this:

  EventResizeJavaScript="new DayPilot.Modal({onClosed:function(args){ if (args.result) { dp.eventResizeCallBack(e, newStart, newEnd); }  }}).showUrl('Page.aspx');"

This code will open "Page.aspx" and wait until it's closed.
1. If it's canceled (DayPilot.Modal.close(); call without arguments inside Page.aspx) the resizing is canceled.
2. If it's confirmed (e.g. DayPilot.Modal.close({"action": "OK"}); call inside Page.aspx) the server-side EventResize event is called.

See also:

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.