Edit this page

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:

  1. The RadRibbonBar which has fired the event. This argument is of type object, but can be cast to the RadRibbonBar type.

  2. 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:


protected void RadRibbonBar1_ApplicationMenuItemClick(object sender, RibbonBarApplicationMenuItemClickEventArgs e)
{
    string message = string.Format("Application menu item {0} was clicked.", e.Item.Text);

    textBox1.Text = message;
}


Protected Sub RadRibbonBar1_ApplicationMenuItemClick(ByVal sender As Object, ByVal e As RibbonBarApplicationMenuItemClickEventArgs)
    Dim message As String = String.Format("Application menu item {0} was clicked.", e.Item.Text)

    textBox1.Text = message
End Sub

See Also