Edit this page

OnClientItemClicked

The OnClientItemClicked client-side event occurs when the user clicks on an item in the panel bar, after the panel bar responds to the mouse click.

The event handler receives two parameters:

  1. The instance of the panel bar firing the event.

  2. An eventArgs parameter containing the following methods:

    • get_item returns a reference to the RadPanelItem that was clicked.

    • get_domEvent() returns the DOM event object.

You can use this event to respond when the user clicks on a panel bar item:

<script>
    function OnClientItemClicked(sender, args) {
        alert("The " + args.get_item().get_text() + " item has been clicked");
    }            
</script>
<telerik:radpanelbar id="RadPanelBar1" runat="server" onclientitemclicked="OnClientItemClicked"> 
 ...
</telerik:radpanelbar>

See Also