RadTabStrip for ASP.NET

RadTabStrip Send comments on this topic.
TabCreated Event
See Also  Example
Telerik.WebControls Namespace > RadTabStrip Class : TabCreated Event


Occurs on the server when a tab in the RadTabStrip control is created. 

Example

The following example demonstrates how to use the TabCreated event to set the ToolTip property of each tab.  

Event Data

The event handler receives an argument of type TabStripEventArgs containing data related to this event. The following TabStripEventArgs properties provide information specific to this event.

PropertyDescription
Tab Gets the referenced Tab in the RadTabStrip control when the event is raised.
 

 

Namespace: Telerik.WebControls
Assembly: RadTabStrip (in RadTabStrip.dll)

Syntax

Visual Basic (Declaration) 
Public Event TabCreated() As TabStripEventHandler
Visual Basic (Usage)Copy Code
Dim instance As RadTabStrip
Dim handler As TabStripEventHandler
 
AddHandler instance.TabCreated, handler
C# 
public event TabStripEventHandler TabCreated()
 

Event Data

The event handler receives an argument of type TabStripEventArgs containing data related to this event. The following TabStripEventArgs properties provide information specific to this event.

PropertyDescription
Tab Gets the referenced Tab in the RadTabStrip control when the event is raised.

Example

The following example demonstrates how to use the TabCreated event to set the ToolTip property of each tab.
C#Copy Code
private void RadTabStrip1_TabCreated(object sender, Telerik.WebControls.TabStripEventArgs e)
{
   e.Tab.ToolTip = e.Tab.Text;
}
    
Visual BasicCopy Code
Sub RadTabStrip1_TabCreated(ByVal sender As Object, ByVal e As TabStripEventArgs) Handles RadTabStrip1.TabCreated
    e.Tab.ToolTip = e.Tab.Text
End Sub

Remarks

The TabCreated event is raised every time a new tab is added to the RadTabStrip instance.

The TabCreated event is not related to databinding and you cannot retrieve the DataItem of the tab in the event handler.

The TabCreated event is often useful in scenarios where you want to initialize all Tabs - for example setting the ToolTip of each Tab to be equal to the Text property.

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also