New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Client-side Programming Overview

RadColorPicker provides a flexible client-side API that allows you to interact with the color picker on the client.

Getting the RadColorPicker client-side object

var colorPicker = $find("<%= RadColorPicker1.ClientID %>");

Client-Side Properties

All the public properties that are defined on the server are available on the client-side object. You can get/set a property value on the client using the following notation:


For example to get/set the SelectedColor property using the client-side object:

var colorPicker = $find('<%= RadColorPicker1.ClientID%>');
var selectedColor = colorPicker.get_selectedColor();

See Also

In this article