KaxToolBarItemCreated Event |
Occurs when a toolbar item is created.
Namespace: Kettic.AspNet.ControlsAssembly: Kettic.AspNet.Controls (in Kettic.AspNet.Controls.dll) Version: 2014.4.1129.0 (2014.04.1129.0)
Syntaxpublic event KaxToolBarEventHandler ItemCreated
Public Event ItemCreated As KaxToolBarEventHandler
public:
event KaxToolBarEventHandler^ ItemCreated {
void add (KaxToolBarEventHandler^ value);
void remove (KaxToolBarEventHandler^ value);
}
member ItemCreated : IEvent<KaxToolBarEventHandler,
KaxToolBarEventArgs>
Value
Type:
Kettic.AspNet.ControlsKaxToolBarEventHandler
Remarks
The ItemCreated event is raised when an item in the
KaxToolBar
control is created, both during round-trips and at the time data is bound to the control.
The ItemCreated event is not raised for items which are defined inline in the page or user control.
The ItemCreated event is commonly used to initialize item properties.
Examples
The following example demonstrates how to use the
ItemCreated event
to set the
ToolTip property of each item.
protected void KaxToolBar1_ItemCreated(object sender, Kettic.AspNet.Controls.KaxToolBarEventArgs e)
{
e.Item.ToolTip = e.Item.Text;
}
Sub KaxToolBar1_ItemCreated(ByVal sender As Object, ByVal e As Kettic.AspNet.Controls.KaxToolBarEventArgs) Handles KaxToolBar1.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