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

ESC to close kendo window containing an iframe

1 Answer 300 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Veteran
Ron asked on 22 Jun 2016, 12:39 PM

Hi,

Pressing the ESC key will normally close a kendo window. But when the kendo window contains an iframe, then pressing the ESC key wont close the window. For instance I have a kendo window containing an iframe, which in turn contains an input text component. Upon opening of the window the input text component gets the focus. Pressing the ESC button now won't close the window. Any suggestions on how to get this scenario working?

Regards,
Ron

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 24 Jun 2016, 05:44 AM

Hello Ron,

The window does not attach event handlers within the iframe, because this is prone to fail in cross-origin scenarios. However, you can create an event handler within the iframe page, and call the close method within the parent iframe. See this forum thread for more information.

Regards,
Alex Gyoshev
Telerik
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
Window
Asked by
Ron
Top achievements
Rank 1
Veteran
Answers by
Alex Gyoshev
Telerik team
Share this question
or