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

Iframe crushes rad dock

3 Answers 76 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 2
Dmitry asked on 09 Mar 2011, 05:38 PM
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?

3 Answers, 1 is accepted

Sort by
0
Dmitry
Top achievements
Rank 2
answered on 09 Mar 2011, 05:59 PM
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.
0
Pero
Telerik team
answered on 14 Mar 2011, 09:16 AM
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!
0
Dmitry
Top achievements
Rank 2
answered on 14 Mar 2011, 03:55 PM
Thank you very much, Pero!
Information that you have provided has solved the problem.
Tags
Dock
Asked by
Dmitry
Top achievements
Rank 2
Answers by
Dmitry
Top achievements
Rank 2
Pero
Telerik team
Share this question
or