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

OnClientFocus

The OnClientFocus client-side event occurs when the combobox receives the input focus.

The event handler receives two parameters:

  1. The instance of the combobox firing the event.

  2. An eventArgs parameter containing the following method:

  • get_domEvent() returns the DOM event object

You can use this event to perform any client-side actions when the combobox receives focus:

<script language="javascript" type="text/javascript">
    function OnClientFocus(sender,args) {
        alert("focus");
    }
</script>

<telerik:radcombobox 
    id="RadComboBox1" 
    runat="server" 
    onclientfocus="OnClientFocus">
</telerik:radcombobox>

See Also

In this article