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


The OnFocus client-side event handler is called when the input control gets focus.

The OnFocus event is supported by all RadInput controls, if they are not ReadOnly .

Two parameters are passed to the event handler:

  • sender is the input control.

  • eventArgs is an instance of Sys.EventArgs.

The following example uses the OnFocus event to show an alert:

<telerik:RadDateInput RenderMode="Lightweight" ID="RadDateInput1" runat="server">
    <ClientEvents OnFocus="Focus" />
<script type="text/javascript">
    function Focus(sender, eventArgs)

See Also

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