This is a migrated thread and some comments may be shown as answers.

Pick Color From RadColorPicker To Label

1 Answer 79 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
SATISH
Top achievements
Rank 1
SATISH asked on 29 Jul 2011, 01:25 PM
Hi All,
I have RadColorPicker Having Id="RadColorPicker1" and also Have a asp Label..
I have Question that once i select the color from RadColorPicked ; That should apply to Asp Label..
Please suggest me out..
I'm beginner of Telerik technology..

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 29 Jul 2011, 03:11 PM
Hello Satish,

There are two approaches to achieve the desired effect:
1. You can use the sever-side event of RadColorPicker ColorChanged in order to apply the name and the color itself to the selected label.
2. Another option is the client-side event of RadColorPicker OnClientColorChange, which can also be used to set the label control with the selected color.

I have attached a sample project demonstrating the suggested solutions, in which the server-side and client-side approaches are presented respectively on the pages ServerSide.aspx and ClientSide.aspx.

Please let us know if you run into difficulties during the implementation of this functionality.

All the best,
Slav
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
ColorPicker
Asked by
SATISH
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or