Click or drag to resize
KaxTabControlTabCreated Event
Occurs when a tab is created.

Namespace: Kettic.AspNet.Controls
Assembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax
public event KaxTabControlEventHandler TabCreated

Value

Type: Kettic.AspNet.ControlsKaxTabControlEventHandler
Remarks
The TabCreated event is raised when an tab in the KaxTabControl control is created, both during round-trips and at the time data is bound to the control. The TabCreated event is not raised for tabs which are defined inline in the page or user control.

The TabCreated event is commonly used to initialize tab properties.

Examples
The following example demonstrates how to use the TabCreated event to set the ToolTip property of each tab.
protected void KaxTabControl1_TabCreated(object sender, Kettic.AspNet.Controls.KaxTabControlEventArgs e)
{
    e.Tab.ToolTip = e.Tab.Text;
}
See Also