Content within iframe invisiable when dragging the window

2 posts, 0 answers
  1. Big Q
    Big Q avatar
    30 posts
    Member since:
    Jan 2010

    Posted 24 Mar 2012 Link to this post

        I have an iframe and a radwindow on my page,when I drag the window, the content within iframe became invisiable until I drop the window, it confuse me a lot. 

    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
                <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" />
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <iframe src="" width="600px" height="400px"></iframe>
        <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="True">
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Mar 2012 Link to this post


    This is an expected behavior.When you move an HTML object on a page and there is an iframe on that page, it is possible that the cursor go into the iframe. If this happens, the iframe will consume the cursor events, which will lead to problems with the resize / movement of the object on the main page. You can hide all iframes on the parent page when you move / resize RadWindow. I attached OnClientDragStart event of RadWindow which will disable this functionality.

    <script type="text/javascript">
     function WindowDragStart(oWin, args)
       var resizeExtender = oWin._resizeExtender;
       //DISABLE iframe hiding

Back to Top