RadControls for ASP.NET AJAX
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:
The following example uses the OnLoad event to change the background color of a text box:
CopyASPX
<telerik:RadTextBox ID="RadTextBox1" runat="server">
<ClientEvents OnLoad="Load" />
</telerik:RadTextBox>
CopyJavaScript
<script type="text/javascript">
function Load(sender)
{
sender.get_styles().EnabledStyle[0] += "background-color: lemonchiffon;";
sender.updateCssClass();
}
</script>