RadControls version
|
2009.1.622.35
|
.NET version |
3.5
|
Visual Studio version |
9
|
programming language |
C#
|
browser support |
all browsers supported by RadControls
|
DESCRIPTION
While developing a RadTabStrip with high interactivity, I found that it's a hassle to initialize/update the different states (hide, enabled, selected) of individual RadTabs. So I created the methods to initialize/update the RadTabs programmatically.
HOW TO USE
1. Add a RadTabStrip to your page with the name
RadTabStrip1.
2. Define all the text of the RadTabs on the top of the Code Behind as shown.
3. Add the 2 methods InitTabs & AddTab into the Code Behind.
4. You may now call from anywhere of the Code Behind to initialize/update the RadTabs as you wish.
e.g.
InitTabs(new TabState[] { TabState.Disabled, TabState.Enabled, TabState.Selected });
CODE SNIPPET