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


The OnClientMenuItemClicked client-side event occurs when the user clicks on a ribbonbar menu item, after the ribbonbar responds to the mouse click.

The event handler receives two parameters:

  1. The instance of the ribbonbar firing the event.

  2. An eventArgs parameter containing the following methods:

    • get_item() returns a reference to the ribbonbar menu item that was clicked. In this case it is RibbonBarMenuItem.

You can use this event to respond when the user clicks on a ribbonbar menu item:

<script type="text/javascript">
    function OnClientMenuItemClicked(sender, args) {
        var item = args.get_item();

<telerik:RadRibbonBar RenderMode="Lightweight" ID="RadRibbonBar1" runat="server" OnClientMenuItemClicked="OnClientMenuItemClicked">
    <telerik:RibbonBarTab Text="Home">
        <telerik:RibbonBarGroup Text="Image">
                <telerik:RibbonBarMenu Size="Medium" Text="Rotate" ImageUrl="icons/Rotate.png">
                        <telerik:RibbonBarMenuItem Text="Rotate Right 90�" ImageUrl="icons/Rotate.png" />
                        <telerik:RibbonBarMenuItem Text="Rotate Left 90�" ImageUrl="icons/RotateLeft.png" />
                        <telerik:RibbonBarMenuItem Text="Rotate 180�" ImageUrl="icons/Rotate180.png" />
                        <telerik:RibbonBarMenuItem Text="Flip Horizontal" ImageUrl="icons/FlipHorizontal.png" />
                        <telerik:RibbonBarMenuItem Text="Flip Vertical" ImageUrl="icons/FlipVertical.png" />

See Also

In this article