Edit this page


The OnClientDropDownClosing client-side event occurs when the drop-down is about to close, hiding its child buttons.

The event handler receives two parameters:

  1. The instance of the toolbar firing the event.

  2. An eventArgs parameter containing the following methods:

  • get_item returns a reference to the RadToolBarItem that is about to close. In this case it is a drop-down.

  • set_cancel lets you prevent the drop-down from closing.

  • get_domEvent - returns the browser's event object.

You can use this event to respond to an action before the buttons list of the drop-down closes:

    function OnClientDropDownClosing(sender, args)   
        //this will prevent the dropdown from closing

<telerik:RadToolBar RenderMode="Lightweight" ID="RadToolBar1" runat="server" Orientation="Horizontal" 
    <CollapseAnimation Duration="200" Type="OutQuint" />
        <telerik:RadToolBarButton Text="button1" runat="server">
        <telerik:RadToolBarDropDown Text="dropdown" runat="server">
                <telerik:RadToolBarButton Text="Button2" runat="server">
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article