RadWindow is disabling dropdowns on parent page after popup is closed (IE 8 only)

4 posts, 0 answers
  1. AAA
    AAA avatar
    22 posts
    Member since:
    Nov 2007

    Posted 09 Oct 2009 Link to this post

    Hello Telerik, I'm using RadWindow popups on several of my pages. When my browser is IE 8 and without the compatibility mode, it seems that all the dropdowns on the page get disabled after I close a RadWindow that has been opened. When I put the browser into compatibility mode, everything works fine...but not in pure IE 8 mode. This happens on any page that the RadWindow is on.

    The runtime version of the RadWindow dll is v2.0.50727
    and the Version is 1.9.1.0

    Please let me know how to fix this.

    Thanks.
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Oct 2009 Link to this post

    Hi,

    The version that you use - RadWidnow for ASP.NET does not support IE8. We provide full support for that version of IE in the Q1 SP1 2009 (ASP.NET AJAX) version of the control. I strongly recommend to consider upgrading, but if you insist on using RadWIndow for ASP.NET, you could try the following workaround - just place the script on the page after RadWindowManager's declaration:

    /// Workaround
    RadWindowNamespace.RadWindowModal.prototype.RestoreInputElementsState = function()
    {
        if (this.Window.IsIE)
        {
            this.DisabledDrodpowns = false;
            for (var i = 0; i < this.InputElementsState.length; i++)
            {
                var _o = this.InputElementsState[i];
                if (_o.isEnabled)
                {
                    _o.inputElement.removeAttribute("disabled");
                }
            }
        }
    }
    RadWindowNamespace.RadWindowModal.prototype.DisableInputElements = function()
    {
        if (this.Window.IsIE && !this.DisabledDrodpowns)
        {
            this.InputElementsState = [];
            var lists = document.getElementsByTagName("SELECT");
            for (var i = 0; i < lists.length; i++)
            {
                this.InputElementsState[i] = {
                    inputElement: lists[i],
                    isEnabled: !(lists[i].getAttribute("disabled"))
                };
     
                lists[i].setAttribute("disabled", "disabled");
            }
            this.DisabledDrodpowns = true;
        }
    }
     
    ////////////////////////////////////////////////////

    Regards,
    Georgi Tunev
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Harmeet
    Harmeet avatar
    2 posts
    Member since:
    Mar 2012

    Posted 07 Mar 2012 Link to this post

    Hi Telerik,

    I am using RadControls for ASP.NET AJAX Q2 2010, still I am getting same problem (All drop down of parent page get disable after closing radwindow). IE 8, IE 9 in both version I found this problem, but when I use compatible view of IE then its working fine.
    I am using following code:

    /*Javascript code*/

            function OpenDialogContactType() {
                var url = "TestLocal.aspx?ID=-1";
                mwinHistory = top.radopen(url, "rdWdTestLocal");
                OpenRadWinContactType(title, 900, 500);
                return false;
            }
            function OpenRadWinContactType(title, width, height) {
                mwinHistory.SetSize(width, height);
                mwinHistory.SetModal(true);
                mwinHistory.SetTitle(title);
                mwinHistory.Center();
                mwinHistory.SetStatus("");
            }

     

    /*Javascript code*/

        <asp:ScriptManager ID="sm" runat="server" EnablePageMethods="true">
            <Scripts>
                <asp:ScriptReference Path="~/_Common/clientscript/jQuery1.4.1.js" />
            </Scripts>
        </asp:ScriptManager>
            <radW:RadWindowManager ID="rdManagerLocalContact" runat="server"
            Modal="true" >
            <Windows>
                <radW:RadWindow ID="rdWdLocalContact" runat="server" Modal="true" OffsetElementId="searchForm"
                    InitialBehavior="none" Behaviors="Close" VisibleStatusbar="false" AutoSize="true"
                    DestroyOnClose="false"></radW:RadWindow>
            </Windows>
        </radW:RadWindowManager>



  4. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5929 posts

    Posted 08 Mar 2012 Link to this post

    Hi Harmeet,

    I tried this scenario with the Q2 2010 SP2 release and things were working fine with me: http://screencast.com/t/h0UxVKWI8MLe. I am also attaching here my test page as a reference so you can compare it with yours and try to locate the reason.

    What I advise is that you upgrade to the latest version (currently Q1 2012), not only because there have been many fixed and improvements since the old version you are using, but also because it supports IE9.
     


    All the best,
    Marin
    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