ESC to close kendo window containing an iframe

2 posts, 0 answers
  1. Ron
    Ron avatar
    48 posts
    Member since:
    Oct 2010

    Posted 22 Jun Link to this post


    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?


  2. Alex Gyoshev
    Alex Gyoshev avatar
    2500 posts

    Posted 24 Jun Link to this post

    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.

    Alex Gyoshev
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Kendo UI is VS 2017 Ready
Back to Top