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

iframe within multipage

2 Answers 128 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Chase Florell
Top achievements
Rank 1
Chase Florell asked on 08 Sep 2008, 08:02 PM
I have a page that is throwing an error when I use an iframe inside a RadMultiPage.

<body> 
    <form id="form1" runat="server">  
    <div> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Office2007" SelectedIndex="0" MultiPageID="RadMultiPage1">  
            <Tabs> 
                <telerik:RadTab Text="General" /> 
                <telerik:RadTab Text="Pages" /> 
                <telerik:RadTab Text="Users" /> 
                <telerik:RadTab Text="SEO" /> 
                <telerik:RadTab Text="Help" /> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <div id="Inner">  
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0">  
                <telerik:RadPageView ID="RadPageView1" runat="server">  
                    RadPageView1  
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView2" runat="server">  
                    RadPageView2  
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView3" runat="server">  
                    RadPageView3  
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView4" runat="server">  
                    RadPageView4  
                </telerik:RadPageView> 
                <telerik:RadPageView ID="RadPageView5" runat="server">  
                    <iframe width="100%" height="100%" src="http://mysite.com/help.html"></iframe> 
                </telerik:RadPageView> 
            </telerik:RadMultiPage> 
        </div> 
    </div> 
    </form> 
</body> 

The error says
"Error: Can't move focus to the control because it is invisible, not enabled, or of a type that does not accept the focus."

2 Answers, 1 is accepted

Sort by
0
Chase Florell
Top achievements
Rank 1
answered on 08 Sep 2008, 08:03 PM
Sorry... forgot to say it is a Javascript error.
0
Atanas Korchev
Telerik team
answered on 09 Sep 2008, 06:44 AM
Hi Chase Florell,

Perhaps something from "http://mysite.com/help.html" tries to get focus but is invisible because the SelectedIndex property of the multipage is set to "0". You can either select the page with the iframe by default so it is visible or find the control which tries to receive focus and prevent it.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
TabStrip
Asked by
Chase Florell
Top achievements
Rank 1
Answers by
Chase Florell
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or