This is a migrated thread and some comments may be shown as answers.

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

3 Answers 115 Views
Window
This is a migrated thread and some comments may be shown as answers.
AAA
Top achievements
Rank 1
AAA asked on 09 Oct 2009, 03:26 PM
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.

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 13 Oct 2009, 08:57 AM
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.
0
Harmeet
Top achievements
Rank 1
answered on 07 Mar 2012, 06:10 AM
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>



0
Marin Bratanov
Telerik team
answered on 08 Mar 2012, 11:33 AM
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.
Tags
Window
Asked by
AAA
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Harmeet
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or