Click or drag to resize
KaxMenuItemCreated Event
Occurs on the server when an item in the KaxMenu 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 KaxMenuEventHandler ItemCreated

Value

Type: Kettic.AspNet.ControlsKaxMenuEventHandler
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 KaxMenuItem 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 KaxMenu1_ItemCreated(object sender, Kettic.AspNetControls.KaxMenuItemEventArgs e)
{
    e.Item.ToolTip = e.Item.Text;
}
See Also