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

2nd Radwindow Closed, 1st RadWindow Appears "Inactive"

5 Answers 67 Views
Window
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 29 May 2014, 03:25 AM
Hi,

Seems this would be easy, but I am stuck.

I sometimes need to open a 2nd RadWindow on my page.  When I close it, the 1st RadWindow appears to still be "inactive."  Please see the attached screenshots.

I've also tried different variations of this code:

function onRWClose(sender, args) {
 
    var JobRW = $find("<%=JobRW.ClientID %>");
    jobvisible = JobRW.isVisible();
    if(jobvisible == true) {
        JobRW.isActive(true);
    }
     
}

Thanks for any help!

Jim

5 Answers, 1 is accepted

Sort by
0
James
Top achievements
Rank 1
answered on 29 May 2014, 03:26 AM
I forgot to post attachments.
0
Shinu
Top achievements
Rank 2
answered on 29 May 2014, 06:12 AM
Hi James,

Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. By default the controls behavior is like that parent window  set active after closing the child window. Please provide your full code if it doesn't help.

ASPX:
<telerik:RadWindow ID="MainWindow" runat="server" Modal="true" VisibleOnPageLoad="true">
    <ContentTemplate>
        <telerik:RadButton ID="radbtnOpenWin" runat="server" Text="Open Window" AutoPostBack="false" OnClientClicked="OpenWindow">
        </telerik:RadButton>
    </ContentTemplate>
</telerik:RadWindow>
<telerik:RadWindow ID="ChildWindow" runat="server" Modal="true">
    <ContentTemplate>
        Child Window
    </ContentTemplate>
</telerik:RadWindow>

JavaScript:
function OpenWindow(sender, args) {
    var window = $find("<%=ChildWindow.ClientID%>");
    window.show();
}

Thanks,
Shinu.
0
James
Top achievements
Rank 1
answered on 29 May 2014, 02:15 PM
Shinu,

Thank you for your post, but it did not resolve my problem. 

An exact sample of my page (with your code) is shown below.

The attached files show the result with the parent window still deactivated.

Can anyone else please help out a little here?  Thanks!

Jim

<%@ Page Language="VB" AutoEventWireup="false" CodeBehind="RWTest.aspx.vb" Inherits="FASTPORT.RWTest" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        function OpenWindow(sender, args) {
            var window = $find("<%=ChildWindow.ClientID%>");
            window.show();
        }
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
     <telerik:RadWindow ID="MainWindow" runat="server" Modal="true" VisibleOnPageLoad="true">
            <ContentTemplate>
                <telerik:RadButton ID="radbtnOpenWin" runat="server" Text="Open Window" AutoPostBack="false"
                    OnClientClicked="OpenWindow">
                </telerik:RadButton>
            </ContentTemplate>
        </telerik:RadWindow>
        <telerik:RadWindow ID="ChildWindow" runat="server" Modal="true">
            <ContentTemplate>
                Child Window
            </ContentTemplate>
        </telerik:RadWindow>
    <div>
        
    </div>
    </form>
</body>
</html>
a
0
Marin Bratanov
Telerik team
answered on 03 Jun 2014, 10:57 AM

Hello Jim,

There is no reason for such behavior with the attached code. I tried it myself (with Q1 2014 SP1) and it seemed to work fine for me in all major browsers.

I am attaching the sample I used for testing and a short video from my experiments as a reference. Could you compare them with your setup and see what the difference is? Are there custom stylesheets or skins used on the page that may be causing the issue?

If you still cannot resolve this I advise that you open a support ticket and send us a runnable sample that shows the behavior you are seeing so we can reproduce and debug it.

If the modification is minor or I am missing something in my tests, you could post the needed information here instead of opening a ticket.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Marin Bratanov
Telerik team
answered on 10 Jun 2014, 08:48 AM

Hi all,

After investigating the case in a support ticket (thank you for the sample, Jim), it turned out that this is caused by a bug in the Lightweight RenderMode of the RadWindow. The mode was set in the web.config which is why markup alone did not reproduce the issue. You can monitor the case here: http://feedback.telerik.com/Project/108/Feedback/Details/98289.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Window
Asked by
James
Top achievements
Rank 1
Answers by
James
Top achievements
Rank 1
Shinu
Top achievements
Rank 2
Marin Bratanov
Telerik team
Share this question
or