Occurs on the server when an item in the KaxMenu control is
created.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntax public event KaxMenuEventHandler ItemCreated
Public Event ItemCreated As KaxMenuEventHandler
public:
event KaxMenuEventHandler^ ItemCreated {
void add (KaxMenuEventHandler^ value);
void remove (KaxMenuEventHandler^ value);
}
member ItemCreated : IEvent<KaxMenuEventHandler,
KaxMenuEventArgs>
Value
Type:
Kettic.AspNet.ControlsKaxMenuEventHandlerRemarks 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;
}
Sub KaxMenu1_ItemCreated(ByVal sender As Object, ByVal e As Kettic.AspNetControls.KaxMenuItemEventArgs) Handles KaxMenu1.ItemCreated
e.Item.ToolTip = e.Item.Text
End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also