IFrame inside dock unable to move dock

2 posts, 0 answers
  1. Sammy
    Sammy avatar
    5 posts
    Member since:
    Dec 2010

    Posted 16 Apr 2011 Link to this post

    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.
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 20 Apr 2011 Link to this post

    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,
    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.

Back to Top