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:

<DayPilot:DayPilotScheduler
  ...
  ClientObjectName="dp"
  EventResizeHandling="JavaScript"
  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:
http://code.daypilot.org/81367/daypilot-modal
http://api.daypilot.org/daypilot-scheduler-eventresizecallback/

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