Click or drag to resize
KaxNavigationBarItemCreated Event
Occurs on the server when an item in the KaxNavigationBar control 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 KaxNavigationBarEventHandler ItemCreated

Value

Type: Kettic.AspNet.ControlsKaxNavigationBarEventHandler
Remarks

The ItemCreated event is raised every time a new item is added.

The ItemCreated event is not related to data binding and you cannot retrieve the DataItem of the item in the event handler.

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

Examples
The following example demonstrates how to use the ItemCreated event to set the ToolTip property of each item.
private void KaxNavigationBar1_ItemCreated(object sender, Kettic.AspNetControls.KaxNavigationBarItemEventArgs e)
{
    e.Item.ToolTip = e.Item.Text;
}
See Also