OnLoad | RadNumericTextBox for ASP.NET AJAX Documentation
Edit this page

OnLoad

The OnLoad client-side event handler is called when the input control is loaded on the client.

note

The OnLoad event is supported by all RadInput controls.

Two parameters are passed to the event handler:

  • sender is the input control.

  • eventArgs is an instance of Sys.EventArgs.

The following RadNumericTextBox uses the OnLoad event to change the background color of a text box:

<telerik:RadNumericTextBox RenderMode="Lightweight" ID="RadNumericTextBox1" runat="server">
    <ClientEvents OnLoad="Load" />
</telerik:RadNumericTextBox>
<script type="text/javascript">
    function Load(sender)
    {
        sender.get_styles().EnabledStyle[0] += "background-color: lemonchiffon;";
        sender.updateCssClass();
    }
</script>
Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy