Fires whenever a button is added to the
Items collection of
the toolbar.
Example
Here is an example how to handle the
ItemAdded event.
Event Data
The event handler receives an argument of type RadToolbarItemAddedEventArgs containing data related to this event. The following RadToolbarItemAddedEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Item |
Gets a reference to the item being added.
|
Namespace: Telerik.WebControls
Assembly: RadToolbar (in RadToolbar.dll)
Syntax
| Visual Basic (Declaration) | |
|---|
Public Event ItemAdded() As RadToolbar.OnItemAddedDelegate |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As RadToolbar
Dim handler As RadToolbar.OnItemAddedDelegate
AddHandler instance.ItemAdded, handler
|
| C# | |
|---|
public event RadToolbar.OnItemAddedDelegate ItemAdded() |
Event Data
The event handler receives an argument of type RadToolbarItemAddedEventArgs containing data related to this event. The following RadToolbarItemAddedEventArgs properties provide information specific to this event.
| Property | Description |
|---|
| Item |
Gets a reference to the item being added.
|
Example
Here is an example how to handle the
ItemAdded event.
| C# | Copy Code |
|---|
private void toolbar1_ItemAdded(object
sender, Telerik.WebControls.RadToolbarItemAddedEventArgs e)
{
RadToolbarItem item = e.Item;
Response.Write(item.ItemType.ToString());
}
|
Remarks
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also