Edit this page


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

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:RadTextBox RenderMode="Lightweight" ID="RadTextBox1" runat="server">
    <ClientEvents OnFocus="Focus" />
<script type="text/javascript">
    function Focus(sender, eventArgs)

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article