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
hello,
    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">
        <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>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <iframe src="http://www.telerik.com" width="600px" height="400px"></iframe>
    </div>
    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="True">
    </telerik:RadWindow>
    </form>

1 Answer, 1 is accepted

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

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.

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

Thanks,
Princy.
Asked by
Big Q
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or