This is a migrated thread and some comments may be shown as answers.
Content within iframe invisiable when dragging the window
1 Answer 44 Views
This is a migrated thread and some comments may be shown as answers.
Big Q
Top achievements
Rank 1
Big Q asked on 24 Mar 2012, 03:20 PM
    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">

1 Answer, 1 is accepted

Sort by
Top achievements
Rank 1
answered on 27 Mar 2012, 08:38 AM

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

Asked by
Big Q
Top achievements
Rank 1
Answers by
Top achievements
Rank 1
Share this question