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

6 posts, 0 answers
  1. James
    James avatar
    55 posts
    Member since:
    Oct 2011

    Posted 28 May 2014 Link to this post

    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
  2. James
    James avatar
    55 posts
    Member since:
    Oct 2011

    Posted 28 May 2014 in reply to James Link to this post

    I forgot to post attachments.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 29 May 2014 in reply to James Link to this post

    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.
  5. James
    James avatar
    55 posts
    Member since:
    Oct 2011

    Posted 29 May 2014 in reply to Shinu Link to this post

    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
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 03 Jun 2014 Link to this post

    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.

     
  7. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3595 posts

    Posted 10 Jun 2014 Link to this post

    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.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017