Telerik is a leading vendor of ASP.NET AJAX, ASP.NET MVC, Silverlight, WinForms and WPF controls and components, as well as .NET Reporting, .NET ORM , .NET CMS, Code Analysis, Mocking, Team Productivity and Automated Testing Tools. Building on its expertise in interface development and Microsoft technologies, Telerik helps customers build applications with unparalleled richness, responsiveness and interactivity. Telerik products help thousands of companies to be more productive and deliver reliable applications under budget and on time.
Version Q2 2011 released 07/12/2011
select

TabStrip / MultiPage

Products
Products

select







  • RadMultiPage acts as a container for page views. Each RadPageView control in turn contains child controls such as buttons and text boxes. You can programmatically add/remove show/hide a particular RadPageView on the sever and client side.

    Additionally, instead of putting controls or HTML in the page view you can use its ContentUrl property to directly load a page in it.

    The RadMultiPage and the RadTabStrip controls are natively integrated. All you need to do is set the MultiPageID property of the tabstrip to the ID of the respective multipage instance. If the controls are not inside the same naming container, you should use the value of the UniqueID property of your multipage.

Source Code

C# VB.NET
Show code in new window Demo isolation steps
  • <%@ Page AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs" Inherits="Telerik.Web.Examples.TabStrip.Functionality.MultiPage.DefaultCS"
        Language="c#" %>

    <%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
    <%@ Register TagPrefix="qsf" TagName="Header" Src="~/Common/Header.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="HeadTag" Src="~/Common/HeadTag.ascx" %>
    <%@ Register TagPrefix="qsf" TagName="Footer" Src="~/Common/Footer.ascx" %>
    <%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <qsf:HeadTag runat="server" ID="Headtag1"></qsf:HeadTag>
        <link rel="stylesheet" type="text/css" href="styles.css" />
    </head>
    <body class="BODY">
        <form runat="server" id="mainForm" method="post">
            <telerik:RadScriptManager ID="ScriptManager" runat="server" />
            <qsf:Header runat="server" ID="Header1" NavigationLanguage="C#" ShowSkinChooser="false"></qsf:Header>
            <div class="exampleWrapper">
                <telerik:RadTabStrip ID="RadTabStrip1" runat="server" Skin="Black" MultiPageID="RadMultiPage1"
                    SelectedIndex="0" CssClass="tabStrip">
                    <Tabs>
                        <telerik:RadTab Text="Products">
                        </telerik:RadTab>
                        <telerik:RadTab Text="About">
                        </telerik:RadTab>
                        <telerik:RadTab Text="Contact Us">
                        </telerik:RadTab>
                        <telerik:RadTab Text="LinkedIn Profile">
                        </telerik:RadTab>
                    </Tabs>
                </telerik:RadTabStrip>
                <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
                    <telerik:RadPageView ID="RadPageView1" runat="server">
                        <img src="Images/products.png" alt="Products" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView2" runat="server" CssClass="pageViewEducation">
                        <img src="Images/about.png" alt="Products" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView3" runat="server">
                        <br />
                        <telerik:RadComboBox runat="server" ID="RadComboBox1" Label="To:" Width="160px" Skin="Black">
                            <Items>
                                <telerik:RadComboBoxItem Text="Sales" />
                                <telerik:RadComboBoxItem Text="Marketing" />
                                <telerik:RadComboBoxItem Text="R&amp;D" />
                            </Items>
                        </telerik:RadComboBox>
                        <br />
                        <br />
                        <telerik:RadTextBox runat="server" ID="RadTextBox1" Label="Subject:" Width="300px" Skin="Black">
                        </telerik:RadTextBox>
                        <br />
                        <br />
                        <label for="TextBox1">Message:</label>
                        <asp:TextBox runat="server" ID="TextBox1" Rows="10" TextMode="MultiLine" Width="300px"></asp:TextBox>
                        <br />
                        <br />
                        <input type="button" value="Send" id="btnSend" />
                    </telerik:RadPageView>
                    <telerik:RadPageView ID="RadPageView4" runat="server" Width="679px" Height="362px" ContentUrl="http://www.linkedin.com/company/telerik">
                    </telerik:RadPageView>
                </telerik:RadMultiPage>
                <telerik:RadFormDecorator runat="server" ID="RadFormDecorator1" DecoratedControls="Textarea" />
            </div>
            <qsf:Footer runat="server" ID="Footer1"></qsf:Footer>
        </form>
    </body>
    </html>

Get more than expected!

 
 

Take your time to truly experience the power of RadControls for ASP.NET AJAX with a free 60-day trial backed up by Telerik’s unlimited dedicated support.

Download your RadControls for ASP.NET AJAX trial and jumpstart your development with the available Getting Started resources.

If you have any questions, do not hesitate to contact us at sales@telerik.com.

Copyright 2002-2024 © Telerik. All right reserved
Telerik Inc, 201 Jones Rd, Waltham, MA 02451