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

New event onClosing

2 Answers 1221 Views
Window
This is a migrated thread and some comments may be shown as answers.
Stéphane
Top achievements
Rank 1
Stéphane asked on 31 Jan 2012, 04:02 PM
I want a new event to intercept when the window is closing.
The close event do not work, because I can't cancel the action.

What can I do with this version of Kendo Window. (2011.3.1129)

Stef.

2 Answers, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 24 Apr 2012, 02:18 AM
Bump!

Definitely would benefit from all close/open events, before and after.
0
Alex Gyoshev
Telerik team
answered on 24 Apr 2012, 07:14 AM
Hello,

The close event is triggered before the window gets closed, and can be prevented:

$("#window").data("kendoWindow")
    .bind("close", function(e) {
        if (!confirm("are you sure?"))
            e.preventDefault();
    }); 

You can observe that in the window events example.

Greetings,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Stéphane
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or