New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
ApplicationMenuItemClick
The server-side ApplicationMenuItemClick event occurs when the user clicks on application menu item, causing a postback.
The event handler function receives two arguments:
-
The RadRibbonBar which has fired the event. This argument is of type object, but can be cast to the RadRibbonBar type.
-
An EventArgs object. This object has an Item property, which provides access to the item that has just been clicked.
The following example shows how to get the text of the clicked item:
C#
protected void RadRibbonBar1_ApplicationMenuItemClick(object sender, RibbonBarApplicationMenuItemClickEventArgs e)
{
string message = string.Format("Application menu item {0} was clicked.", e.Item.Text);
textBox1.Text = message;
}