Edit this page

OnBlur

The OnBlur client-side event handler is called when the input control loses focus.

note

The OnBlur 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 OnBlur event to show an alert:

<telerik:RadMaskedTextBox RenderMode="Lightweight" ID="RadMaskedTextBox1" runat="server">
    <ClientEvents OnBlur="Blur" />
</telerik:RadMaskedTextBox>
<script type="text/javascript">
    function Blur(sender, eventArgs)
    {
        alert(sender.get_id());
    }
</script>

See Also