Loading a new page into a tab

2 posts, 0 answers
  1. Jernej
    Jernej avatar
    1 posts
    Member since:
    May 2008

    Posted 26 May 2008 Link to this post

    I'm testing your new controls. I would like to use RadTabStrip for navigation and I wonder if it is possible to somehow load a new .aspx when I click on a tab. I don't want to use NavigeateToUrl since it causes a complete postback.

    Thanks, Jernej
  2. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 26 May 2008 Link to this post

    Hi Jernej,

    The easiest way to achieve your goal is to load UserContros (ascx) in the pageviews, but not aspx files. Still if you really have to load aspx files inside the pageview you can do that in an IFRAME only. Here's a sample code snippet that demonstrates the approach.

    <form id="form1" runat="server">  
        <asp:ScriptManager ID="ScriptManager1" runat="server">  
        </asp:ScriptManager> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server">  
            <Tabs> 
                <telerik:RadTab runat="server" Text="Root RadTab1" NavigateUrl="http://www.yahoo.com" Target="targetFrame">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab2" NavigateUrl="http://www.google.com" Target="targetFrame">  
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab3" NavigateUrl="http://www.msn.com" Target="targetFrame">  
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <iframe name="targetFrame" style="width: 879px; height: 497px"></iframe> 
    </form> 


    Sincerely yours,
    Paul
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top