Edit this page

OnClientLoad

The OnClientLoad client-side event occurs after the color picker loads on the page.

The event handler receives parameters:

  1. The color picker instance that fired the event.

  2. Event arguments. The parameter has no methods for this event.

The example below sets the color value to Red.

function clientLoad(sender, eventArgs)
{
   sender.set_selectedColor("#FF0000");
}
...
<telerik:RadColorPicker
   ID="RadColorPicker1"
   runat="server"
   Preset="Standard"
   OnClientLoad="clientLoad">
</telerik:RadColorPicker>