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


The server-side ItemClick event occurs when the user clicks on a panel item, causing a postback.

The ItemClick event handler receives two arguments:

  1. The RadPanelBar that contains the clicked item. This argument is of type object, but can be cast to the RadPanelBar type.

  2. A RadPanelBarEventArgs object. This object has an Item property that you can use to access the item that was clicked.

Use the ItemClick event handler to respond when the user clicks an item in the panel bar.

protected void RadPanelBar1_ItemClick(object sender, RadPanelBarEventArgs e) 
    RadPanelItem ItemClicked = e.Item; Response.Write("Server event raised -- you clicked: " + ItemClicked.Text); 

Protected Sub RadPanelBar1_ItemClick(ByVal sender As Object, ByVal e As RadPanelBarEventArgs)
    Dim ItemClicked As RadPanelItem = e.Item
    Response.Write("Server event raised -- you clicked: " + ItemClicked.Text)
End Sub

See Also

In this article