This question is locked. New answers and comments are not allowed.
Hello Everyone,
I am trying to display a confirm dialog when a user tries to close a window by click the 'X' in the top right corner. If the user goes for 'OK' option, I would like to continue closing the window but if the user presses the 'Cancel' button I would like to prevent the window from closing. Is there a way to do that?
Thanks.
Update: I looked at the window client events on : http://demos.telerik.com/aspnet-mvc/window/clientsideevents. It says that the onClose event is cancellable but nowhere can I see how to cancel the event.
I am trying to display a confirm dialog when a user tries to close a window by click the 'X' in the top right corner. If the user goes for 'OK' option, I would like to continue closing the window but if the user presses the 'Cancel' button I would like to prevent the window from closing. Is there a way to do that?
Thanks.
Update: I looked at the window client events on : http://demos.telerik.com/aspnet-mvc/window/clientsideevents. It says that the onClose event is cancellable but nowhere can I see how to cancel the event.