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

ColorPicker SelectedColor

2 Answers 101 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Iry Lee
Top achievements
Rank 2
Iry Lee asked on 17 Feb 2010, 08:22 AM
I've a page to add type of an event, with a colorpicker.
<telerik:RadColorPicker runat="server" ID="RadColorPicker1" Preset="Standard" showicon="true" width="300px" EnableEmbeddedSkins="false"/> 

before i save the selectedcolor to database, i change the color to html color as below:
ColorTranslator.ToHtml(RadColorPicker1.SelectedColor) 

now, i wanted to add another page for edit type and i tried to get the color code from database display at the colorpicker :
RadColorPicker1.SelectedColor = System.Drawing.ColorTranslator.FromHtml(color)

but, the colorpicker didn't display the color i set. Anything i left out?
----------
i've found the problem. thanks

2 Answers, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 19 Feb 2010, 01:52 PM
Hi Iry Lee,
I created a simple page to test your code, but it worked as expected on my side - I have attached it for your reference. Could you please open a new support ticket and send me a simple running project, demonstrating the problem?

All the best,
Tsvetie
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Iry Lee
Top achievements
Rank 2
answered on 22 Feb 2010, 08:42 AM
thanks alot for the reply.
i've found the problem.
and now it works well :)
Tags
ColorPicker
Asked by
Iry Lee
Top achievements
Rank 2
Answers by
Tsvetie
Telerik team
Iry Lee
Top achievements
Rank 2
Share this question
or