Iframe crushes rad dock

4 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    4 posts
    Member since:
    Nov 2010

    Posted 09 Mar 2011 Link to this post

    Hello! I've noticed that any simple iframe makes any Rad Dock unmoveable and frozen at the last version of Rad Controls.
    This is the simple code that makes unmoveable dock without a half of the borders at any browser on my system. 
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="MasterPortal.WebSite.WebForm1" %>
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <form id="form1" runat="server">
        <telerik:RadScriptManager runat="server" />
        <telerik:RadDockLayout ID="MainLayout" runat="server">
            <telerik:RadDockZone ID="RadDockZone_1" runat="server">
                <telerik:RadDock ID="ReportDock" runat="server">
                    <ContentTemplate>
                        <iframe src="http://www.google.com" />
                    </ContentTemplate>
                </telerik:RadDock>
            </telerik:RadDockZone>
            <telerik:RadDockZone ID="RadDockZone_2" runat="server" >
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
        </form>
    </body>
    </html>


    Could you please give me some advices about how can irame could be placed at Rad Dock without making it unusable?
  2. Dmitry
    Dmitry avatar
    4 posts
    Member since:
    Nov 2010

    Posted 09 Mar 2011 Link to this post

    I've also made some forther investigations and found one thing - if I'm putting some content after my iframe - content disappears. It cannot be found even in output html. But this content displays fine when no iframe is staying before.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 14 Mar 2011 Link to this post

    Hello Dmitry,

    I would suggest using the RadWindow control to achieve your scenario. The window has built-in support for loading another page into its content - by setting its NavigateUrl property.

    I reproduced the problems locally, and they seem to be caused by the way the <iframe/> element is defined - it should not be used as a self closing tag. Using separate closing tag resolves the issue. Here is the modified code:
    <telerik:RadDock ID="ReportDock" runat="server" Width="500px" Title="Dock Title">
        <ContentTemplate>
            <iframe src="http://www.telerik.com"></iframe>
        </ContentTemplate>
    </telerik:RadDock>

    Kind regards,
    Pero
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  5. Dmitry
    Dmitry avatar
    4 posts
    Member since:
    Nov 2010

    Posted 14 Mar 2011 Link to this post

    Thank you very much, Pero!
    Information that you have provided has solved the problem.
Back to Top