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

Display Modal Box on Event Resize with Updated event details

Asked by Anonymous
6 years ago.

When I am resizing the event, its showing the modal box, but its not updating the event details such as NewEnd or NewStart.
How to do this???

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

If you want to open a modal dialog with event details after event resizing is complete, the best way is to open the modal dialog using AfterRenderJavaScript. This event is fired on the client side during the initial page load and after every callback.

In the EventResize server-side event handler, you can call Update() with custom data. This data object will be available in AfterRenderJavaScript. See here:

If you try to open the modal dialog using EventResizeJavaScript the server-side EventResize is not finished yet in most cases and you will get an old version of the event (before the update).

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