PanelBar is not working when i put iframe in aspx

2 posts, 0 answers
  1. bborie0107
    bborie0107 avatar
    21 posts
    Member since:
    Aug 2006

    Posted 06 Nov 2009 Link to this post


    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" ""> 
    <html xmlns="" > 
    <head runat="server">  
        <form id="form1" runat="server">  
            <asp:ScriptManager ID="ScriptManager1" runat="server">  
            <telerik:RadPanelBar ID="RadPanelBar1" runat="server">  
                    <telerik:RadPanelItem runat="server" Text="LargeMenu">  
                            <telerik:RadPanelItem runat="server" Text="SubMenu1">  
                            <telerik:RadPanelItem runat="server" Text="SubMenu2">  
          <div > 
             <iframe  id="LinkFrame"  src=""  />/>  

    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?


    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

  2. Atanas Korchev
    Atanas Korchev avatar
    8462 posts

    Posted 06 Nov 2009 Link to this post

    Hello bborie0107,

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

    You can check this blog post for additional info.

    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.
Back to Top