This is a migrated thread and some comments may be shown as answers.

IFrame inside dock unable to move dock

1 Answer 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sammy
Top achievements
Rank 1
Sammy asked on 17 Apr 2011, 03:22 AM
I have an iframe like this:
<div style="position: absolute; left: 25%; right: 20%; top:-50px; clip:rect(120px 770px 655px 60px);">
 <iframe id="mainFrame" src="http://<IPAddress>/" scrolling="no" style="width:920px;height:700px;border:0px solid #000; " />

I put it inside a user control and the user control inside a raddock.  When I run the page (IE) i cannot undock or move the docks.  I remove the iframe by comment it out and all works well.  I need the iframe so i can do the clipping of the destination page.

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 20 Apr 2011, 02:43 PM
Hi Sammy,

The problem occurs because of the self-closing <iframe>. To avoid this problem you need to have a closing tag for the <iframe> element, e.g.:
<iframe id="mainFrame" src="http://<;ip_address>/" scrolling="no" style="width:920px;height:700px;border:0px solid #000; "></iframe>

In addition for scenarios where you want to display an external content in a movable container I would recommend using the RadWindow control instead of RadDock.

Best wishes,
Dobromir
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Dock
Asked by
Sammy
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or