This is a migrated thread and some comments may be shown as answers.

How to add TabStrip WebPart to the WSS 3.0 site

1 Answer 81 Views
Sharepoint Integration
This is a migrated thread and some comments may be shown as answers.
Sridebi
Top achievements
Rank 1
Sridebi asked on 02 Nov 2007, 04:02 AM
Can you please provide some code example in C# to add TabStrip control to Sahrepoint Webpart.

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 02 Nov 2007, 12:10 PM
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
Tags
Sharepoint Integration
Asked by
Sridebi
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or