New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
The iframe content gets invisible when dragging the window
Environment
Product | RadWindow for ASP.NET AJAX |
Description
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.
To prevent this unwanted focus capturing behavior of the iframes, RadWindow hides them when it is moved or resized.
Solution
If you don't like this behavior, you can disabling the feature of the RadWIndow that hides the iframes on the page by attaching to the OnClientDragStart event of the window manager and firing the set_hideIframes(false) method:
ASPNET
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" RenderMode="Lightweight"
OnClientDragStart="OnClientDragStartHandler">
<Windows>
<telerik:RadWindow RenderMode="Lightweight" ID="test1" VisibleOnPageLoad="true" runat="server" />
</Windows>
</telerik:RadWindowManager>
JavaScript
<script type="text/javascript">
function OnClientDragStartHandler(oWin, args) {
var resizeExtender = oWin._resizeExtender;
//disable iframe hiding
resizeExtender.set_hideIframes(false);
}
</script>