New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnClientLoad
The OnClientLoad client-side event occurs after the color picker loads on the page.
The event handler receives parameters:
-
The color picker instance that fired the event.
-
Event arguments. The parameter has no methods for this event.
The example below sets the color value to Red.
ASP.NET
function clientLoad(sender, eventArgs)
{
sender.set_selectedColor("#FF0000");
}
...
<telerik:RadColorPicker
ID="RadColorPicker1"
runat="server"
Preset="Standard"
OnClientLoad="clientLoad">
</telerik:RadColorPicker>