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


The OnClientDropDownClosing client-side event occurs before the drop-down list closes.

The event handler receives two parameters:

  1. The instance of the combobox firing the event.

  2. An eventArgs parameter containing the following methods:

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

  • get_domEvent() returns the DOM event object of the drop-down closing.

The following example uses the OnClientDropDownClosing event to prevent the drop-down list from closing if the prompt item is selected:

<script language="javascript" type="text/javascript">
    function OnClientDropDownClosing(sender, eventArgs) {
        if (sender.get_text() == "Select An Item") {
        else {
    <telerik:RadComboBoxItem runat="server" Text="Select An Item">      
    <telerik:RadComboBoxItem runat="server" Text="Item1">      
    <telerik:RadComboBoxItem  runat="server" Text="Item 2">      
    <telerik:RadComboBoxItem  runat="server" Text="Item 3">      

See Also

In this article
Not finding the help you need? Improve this article