Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Window > Window as Modal doesn't disable events on parent window
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 Window as Modal doesn't disable events on parent window

Feed from this thread
  • Darren Furr avatar

    Posted on Feb 10, 2012 (permalink)

    I'm launching the Telerik Window with .modal(true).  However, when doing this - I can still use the Tab key to move from control to control on the parent window.

    Is this a bug or do you have a recommendation for disabling the keyboard events on the parent window?

    Thanks for the help,
    -Darren

  • Georgi Tunev Georgi Tunev admin's avatar

    Posted on Feb 13, 2012 (permalink)

    Hi Darren,

    This behavior is expected - you can't completely block the browser's page (like it is done when for example window.alert() is called) as this is something that cannot be done with JavaScript. What I could suggest in your case is to use Window's OnOpen and OnClose events and manually intercept the keys that you don't want to be active while a Window is shown. This StackOverflow article shows one way to prevent the Tab key with jQuery.

    Kind regards,
    Georgi Tunev
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>

  • Darren Furr avatar

    Posted on Feb 13, 2012 (permalink)

    Yep - that's what I thought.  Exactly what I needed.  Just disabled tab & space.

    Thanks Georgi.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > Window > Window as Modal doesn't disable events on parent window
Related resources for "Window as Modal doesn't disable events on parent window"

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