How is the Modal property implemented?

2 posts, 0 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 09 Nov 2011 Link to this post

    Hey Telerik,

    Just a quick question. I experienced a pretty curious bug under Internet Explorer.

    The web application I'm building upon has a Master Page which defines some a horizontal navigation bar at the top of the page.

    After opening a RadWindow with Content Template, then closing the RadWindow, the horizontal navigation bar becomes invisible. This only occurs on Internet Explorer, only with Content Template RadWindows, and only if they are Modal.

    I was especially careful to go through all of my code and make sure there were no early terminations of HTML mark-up controls. That is, something like 
    <div id="foo" />

    would not be acceptable due to the parsing standards of IE. As such, I am confident in saying that I am properly terminating my HTML mark-up.

    That being said, I was able to resolve the issue like so:

    OnClientBeforeShow = "AddModal";
    OnClientBeforeClose = "RemoveModal";

    //Bug -- IE removes 'TopBar' when closing a modal, content template RadWindow. Circumvent by removing the property right before close.
    function AddModal(radWindow) {
    function RemoveModal(radWindow) {

    Which is awesome -- I am happy to have fixed the bug. Nevertheless, I am left very curious. What's going on here? Why would this implementation have better results than setting the Modal property explicitly?


  2. Marin Bratanov
    Marin Bratanov avatar
    5908 posts

    Posted 11 Nov 2011 Link to this post

    Hi Sean,

    This is some curious behavior indeed. I am glad to hear you have found a workaround, yet I am not certain what the actual reason for this may be. If you can send me some simple markup that reproduces this behavior I will examine it in case this is some bug in the RadWindow.

    Kind regards,
    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 RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top