New to Telerik UI for ASP.NET AJAX? Download free 30-day trial


The ItemCreated event occurs for each new item that is added to the Items collection of the toolbar.

The ItemCreated event handler receives two arguments:

  1. The RadToolBar that is loading items. This argument is of type object, but can be cast to the RadToolBar type.

  2. An EventArgs object. This object has an Item property, which provides access to the item that has just been added.

Use the ItemCreated event handler to make changes to items as they are added to the toolbar:

protected void RadToolBar1_ItemCreated(object sender, RadToolBarEventArgs e) 
    e.Item.Text = "Some Text"; 
Protected Sub RadToolBar1_ItemCreated(ByVal sender As Object, ByVal e As RadToolBarEventArgs)

    e.Item.Text = "Some Text"

End Sub 

See Also

In this article