Tab invisible bug

3 posts, 0 answers
  1. Hamid Bahan
    Hamid Bahan avatar
    5 posts
    Member since:
    Jul 2006

    Posted 23 Jun 2009 Link to this post

    hi all,
    I have 6 Tabs in a radtabstrip control in a ASP .NET page and i want to make the second and the third tabs in visible = false
     This operation cause the next problem : my 4th tabs is not clickable.
    Someone have an idea to resolve this problem?
  2. Hamid Bahan
    Hamid Bahan avatar
    5 posts
    Member since:
    Jul 2006

    Posted 28 Jun 2009 Link to this post

    NO Body Can help me???
    Telerik Team  where are you!!!
  3. Paul
    Admin
    Paul avatar
    4281 posts

    Posted 30 Jun 2009 Link to this post

    Hi Hamid,

    Please find below a sample code snippet that shows the needed approach.

    ASPX:
        <form id="form1" runat="server"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
        </telerik:RadScriptManager> 
        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1" 
            SelectedIndex="0"
            <Tabs> 
                <telerik:RadTab runat="server" Text="Root RadTab1" PageViewID="RadPageView1"
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab2" PageViewID="RadPageView2"
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab3" PageViewID="RadPageView3"
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab4" PageViewID="RadPageView4"
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab5" PageViewID="RadPageView5"
                </telerik:RadTab> 
                <telerik:RadTab runat="server" Text="Root RadTab6" PageViewID="RadPageView6"
                </telerik:RadTab> 
            </Tabs> 
        </telerik:RadTabStrip> 
        <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"
                RadPageView5</telerik:RadPageView> 
            <telerik:RadPageView ID="RadPageView6" runat="server"
                RadPageView6</telerik:RadPageView> 
        </telerik:RadMultiPage> 
        <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> 
        </form> 
    </body> 

    Code-behind:
    using System; 
    using System.Collections.Generic; 
    using System.Linq; 
    using System.Web; 
    using System.Web.UI; 
     
    public partial class _Default : System.Web.UI.Page 
        protected void Page_Load(object sender, EventArgs e) 
        { 
     
        } 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            RadTabStrip1.Tabs[3].Visible = false
            RadTabStrip1.Tabs[4].Visible = false
        } 
     


    All the best,
    Paul
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
Back to Top