How to add TabStrip WebPart to the WSS 3.0 site

2 posts, 0 answers
  1. Sridebi
    Sridebi avatar
    1 posts
    Member since:
    Nov 2007

    Posted 01 Nov 2007 Link to this post

    Can you please provide some code example in C# to add TabStrip control to Sahrepoint Webpart.
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 02 Nov 2007 Link to this post

    Hi Sridebi,

    Here is a short code snippet. I hope it will get you started:

    public class MyWebPart : WebPart 
         private RadTabStrip tabStrip; 
     
         override protected void CreateChildControls() 
         { 
                tabStrip = new RadTabStrip(); 
                tabStrip.ID = "RadTabStrip1"
                
                Tab tab = new Tab(); 
                tab.Text = "Tab1"
                
                tabStrip.Tabs.Add(tab); 
                this.Controls.Add(tabStrip); 
         } 
         
         protected override void RenderWebPart() 
         { 
             EnsureChildControls(); 
             RenderChildren(); 
         } 
     


    I hope this helps,
    Albert
    the Telerik team

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

Back to Top