This is a migrated thread and some comments may be shown as answers.

Add confirmation pop-up when re-sizing the event and cancel changes

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jsn
Top achievements
Rank 1
Jsn asked on 23 Sep 2013, 10:10 AM
Hi,

Does anybody know how can I add a confirmation pop-up on re-size event, and cancel changes when the user click cancel button?.
The sample scenario is like this:
  • when the user resize an event/schedule, a pop-up window will display with a message saying.. "Re-sizing this event will update the time range." with a two button which is "Ok" and "Cancel".
  • So, when the user click "Ok" re-size will do his function as default which update the event/schedule
  • else, if the user click the "Cancel", re-sizing of event/schedule will be cancelled.. means cancel any changes to the schedule.
I know how to pop-up the window.. but I can't figure it out how to cancel changes when user click the "Cancel button".
Thanks.

Regards,
Jesson

1 Answer, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 24 Sep 2013, 10:28 AM
Hi Jesson,

You could use the Scheduler resizeEnd event to display the alert similar to the way shown in this online demo. In order to revert changes made to a given event instance you should use the DataSource cancelChanges method.

Regards,
Rosen
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Scheduler
Asked by
Jsn
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Share this question
or