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

[Solved] [VB.NET/TabStrip] Problem generating tabstrip in VB.NET

2 Answers 161 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michiel Peeters
Top achievements
Rank 1
Michiel Peeters asked on 04 May 2010, 03:40 PM
Dear Telerik Community,

Currently im also trying to make use of the tabstrip control provided by Telerik. Only i'm running into some problems. This is the current code what i have:

 

Dim tabBuilder As Telerik.Web.Mvc.UI.TabStripBuilder = Html.Telerik().TabStrip()

 

 

tabBuilder.Name(

 

"TabProjectDetails")

 

 

tabBuilder.Items(

 

Function(tab) tab.Add().Text("Project Details").Content("MyValue1"))

 

tabBuilder.Items(

 

Function(tab) tab.Add().Text("Ontwerpen").Content("MyValue2"))

 

tabBuilder.Items(

 

Function(tab) tab.Add().Text("Prototypes").Content("MyValue3"))

 

 

tabBuilder.SelectedIndex(0)

tabBuilder.Render()

It adds 3 tabs with a title and content and sets the selectedindex on 0. My questions about the tabcontrol are:

1) I have 3 tabs but when i click on a another tab it does not switch between the tabs. (Fixed, was by a stupid mistake by me :-) )
2) How can i add a complete template to a tab. Can i use usercontrols or something familiair?
3) Can someone provide me in a example for VB.NET (VS2008, .NET 3.5)?

Thank you in advance.

Kind regards,
Michiel Peeters

 

2 Answers, 1 is accepted

Sort by
0
Michiel Peeters
Top achievements
Rank 1
answered on 06 May 2010, 08:32 AM
This post can be deleted. I have fixed the tabstrip.
0
Duna
Top achievements
Rank 1
answered on 28 Feb 2012, 04:03 PM
What was your sollution?
Tags
TabStrip
Asked by
Michiel Peeters
Top achievements
Rank 1
Answers by
Michiel Peeters
Top achievements
Rank 1
Duna
Top achievements
Rank 1
Share this question
or