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


The OnClientContextMenu client-side event occurs just prior to opening a context menu (upon right-clicking a panel item).

The event handler receives two parameters:

  1. An instance of the panel bar that fired the event.

  2. An eventArgs parameter containing the following method:

    • get_item(): retrieves a reference to the clicked item.

    • get_domEvent(): returns the DOM event object for the mouse click.

    function OnClientContextMenu(sender, args) {
        alert("The " + args.get_item().get_text() + " has been right-clicked");
<telerik:radpanelbar id="RadPanelBar1" runat="server" onclientcontextmenu="OnClientContextMenu">       
In this article