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

OnClientItemBlur

The OnClientItemBlur client-side event occurs when an item in the menu loses focus.

The event handler receives two parameters:

  1. The instance of the menu firing the event.

  2. An eventArgs parameter containing the following method:

  • get_item returns a reference to the RadMenuItem that lost focus.

  • get_domEvent returns a reference to the DOM event that caused the blur.

You can use this event to respond when an item loses focus.

<script type="text/javascript">
    function BlurItem(menu, args) {
        alert("Leaving " + args.get_item().get_text());
    }
</script>

<telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" Flow="Horizontal" OnClientItemBlur="BlurItem">
    <Items>
        ...
    </Items>
</telerik:RadMenu>

See Also

In this article