Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Window > MVC Window - Escape Key
Telerik MVC Extensions are no longer supported (see this page for reference). In case you have inquiries about Kendo UI Complete for ASP.NET MVC, post them in the pertinent Kendo UI forums.

Not answered MVC Window - Escape Key

Feed from this thread
  • Travis avatar

    Posted on Oct 6, 2011 (permalink)

    Is there a built-in property for the Window that will close it when you press the escape key. I know I could do it easily with jQuery but it'd be nicer if there was just a configuration I could set in the control itself.

  • Travis avatar

    Posted on Oct 10, 2011 (permalink)

    ** Crickets **
    Bueller? Bueller?

    Does it really take more than 4 days to answer a question around here?

  • Atanas Korchev Atanas Korchev admin's avatar

    Posted on Oct 11, 2011 (permalink)

    Hi Travis,

     No, there is no built-in property which allows this. You can however easily hook up the keyup event of the window and use its close method in order to implement this requirement.

     On a side note Telerik does not guarantee replies to forum posts for Telerik Extensions for ASP.NET MVC. You can check here what the support options are.

    All the best,
    Atanas Korchev
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now

  • Max avatar

    Posted on Jan 24, 2012 (permalink)

    hey there
    Did you manage to achieve this task sucessfully? I have tried the followinf but it wont work:
    Thanks
    document.onKeydown = function(evt) {
        evt = evt || window.event;
        if (evt.keyCode == 27) {
            alert("Escape");
        }
    };

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Window > MVC Window - Escape Key
Related resources for "MVC Window - Escape Key"

ASP.NET MVC Window Features  |  Documentation  |  Demos  |  Telerik TV ]