RadScheduler has an event for when its Edit form opens, called OnClientFormCreated, but there isn't one for when the form closes. However, with some additional code, you can achieve this.
There are various actions that can lead to the form closing - the user clicking on the close icon, pressing cancel, or saving.
You can refer to this demo to see the Advanced Edit Form in action and find pre-written JavaScript code.
In the schedulerFormCreated()
function, you can handle these actions as follows:
function schedulerFormCreated(scheduler, eventArgs) {
var mode = eventArgs.get_mode();
if (mode == Telerik.Web.UI.SchedulerFormMode.AdvancedInsert ||
mode == Telerik.Web.UI.SchedulerFormMode.AdvancedEdit) {
var formElement = eventArgs.get_formElement();
var cancelButton = $("[id$='_CancelButton']");
cancelButton.on("click", formClosed);
var templateKey = scheduler.get_id() + "_" + mode;
....
And a separate event for form closure can be defined as:
function formClosed(eventArgs) {
}
In the formClosed function, you can implement logic for resuming operations, while in schedulerFormCreated, call the function that stops operations after the if-statement.
To target the save button, use _UpdateButton, and for the close icon, it is _AdvancedEditCloseButton. Ensure specificity in element selection by inspecting with tools like FireBug or Chrome Dev tools.
This approach should help achieve the desired functionality.