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

PanelBar is not working when i put iframe in aspx

1 Answer 67 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
bborie0107
Top achievements
Rank 1
bborie0107 asked on 06 Nov 2009, 06:22 AM

Hi

I have a scary situation when i use RadPanelBar

Below is Simple aspx page  

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server">  
    <title></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <table> 
    <tr> 
    <td> 
    <div> 
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
            <Items> 
                <telerik:RadPanelItem runat="server" Text="LargeMenu">  
                    <Items> 
                        <telerik:RadPanelItem runat="server" Text="SubMenu1">  
                        </telerik:RadPanelItem> 
                        <telerik:RadPanelItem runat="server" Text="SubMenu2">  
                        </telerik:RadPanelItem> 
                    </Items> 
                </telerik:RadPanelItem> 
            </Items> 
        </telerik:RadPanelBar>      
    </div> 
    </td> 
    <td> 
      <div > 
         <iframe  id="LinkFrame"  src="http://www.google.com"  />/>  
      </div> 
    </td> 
    </tr> 
    </table> 
    </form> 
</body> 
</html> 
 

In this page RadPanel is not working  I can't expand Root Node
But if i eliminate iframe (ID="LinkFrame") RadPanel works fine as i expected .

Am i missing Something?

Regards,
Park

PS:
After i posted i put runat="server" in iframe tag it works fine But i don't get what runat="server" make a difference
I worked with java and jsp this is the first time of aspx project


1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 06 Nov 2009, 09:26 AM
Hello bborie0107,

Iframe tags must be fully closed in order to work properly. Try replacing this:
<iframe  id="LinkFrame"  src="http://www.google.com"  />
with this:
<iframe  id="LinkFrame"  src="http://www.google.com" ></iframe>

You can check this blog post for additional info.

Regards,
Albert,
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
PanelBar
Asked by
bborie0107
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or