Show/hide tab strip

2 posts, 0 answers
  1. Ron
    Ron avatar
    113 posts
    Member since:
    Apr 2011

    Posted 06 Nov 2011 Link to this post

    Can you tell me how to remove rad tag strip? Everything I've tried did not work so far. Here's what I've tried and neither has worked.
    radTabStrip1.Tabs[1].Visible = false;
    RadMultiPage1.PageViews.Remove(RadMultiPage1.PageViews[1]);

    Thanks,
    Ron.
  2. Jayesh Goyani
    Jayesh Goyani avatar
    2732 posts
    Member since:
    May 2010

    Posted 06 Nov 2011 Link to this post

    Hello,

    please check below code.

    <asp:Button ID="btnTabDemo" runat="server"  OnClick="btnTabDemo_Click" Text="tab demo"/>
            <telerik:RadTabStrip ID="RadTabStrip1" runat="server"  MultiPageID="RadMultiPage1">
                <Tabs>
                    <telerik:RadTab Text="General">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Tools">
                    </telerik:RadTab>
                    <telerik:RadTab Text="Hardware">
                    </telerik:RadTab>
                </Tabs>
            </telerik:RadTabStrip>
            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="pageView"
                Width="345px" >
                <telerik:RadPageView ID="RadPageView1" runat="server">
                    <img src="http://demos.telerik.com/aspnet-ajax/tabstrip/examples/firstlook/Images/general.jpg" alt="General - image only" />
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView2" runat="server">
                    <img src="http://demos.telerik.com/aspnet-ajax/tabstrip/examples/firstlook/Images/tools.jpg" alt="Tools - image only" />
                </telerik:RadPageView>
                <telerik:RadPageView ID="RadPageView3" runat="server">
                    <img src="http://demos.telerik.com/aspnet-ajax/tabstrip/examples/firstlook/Images/hardware.jpg" alt="Hardware - image only" />
                </telerik:RadPageView>
            </telerik:RadMultiPage>

    protected void btnTabDemo_Click(object sender, EventArgs e)
       {
           if (RadTabStrip1.SelectedIndex == 1)
           {
               RadTabStrip1.SelectedIndex = 0;
               RadMultiPage1.SelectedIndex = 0;
           }
     
           RadTabStrip1.Tabs[1].Visible = false;
            
            
       }


    Thanks,
    Jayesh Goyani
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top