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

Prevent RadWindow Closing on ESC key press

1 Answer 240 Views
Window
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 19 Feb 2009, 04:02 PM

I am creating a site that uses RadWindows extensively and have only come to realize now that if someone presses the ESC key windows will close.  Is there anyway to prevent this behavior other than capturing and canceling the ESC key in every last RadWindow.  My site has RadWindows whose pages contain TabStrips with a RadWindow attached to each tab.  Adding the javascript event handling and canceling to every page manually seems to be a poor option.

Thanks for any advice,
Nathan

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 20 Feb 2009, 04:20 PM
Hi Nathan,

The RadWindow control is based to an IFRAME and behaves just like one. This being said, there is no way to prevent the key press (globally for the browser), but for the time being you could use the JavaScript event handling approach. If you would like to implement this functionality you could check the Showing a radconfirm on close of a window and Sticky window forum threads for more information.

I hope this helps.

Greetings,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
Nathan
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or