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

Populate ColorPicker with custom palette?

3 Answers 152 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Charles Bates
Top achievements
Rank 1
Charles Bates asked on 14 Mar 2010, 05:44 PM
UPDATE:  It appears I can set MainPaletteItemsSource to a class derived from  IEnumerable<Color>.

Hello,
I would like to populate the RadColorPicker MainPalette with a set of custom colors.
I suspect I need to set RadColorPicker.StandardPalette="None", and then populate the MainPaletteItemsSource collection.
What type of object goes in to that collection?
Thanks.
(I searched through the demo code, but couldn't find any relevant examples.)

3 Answers, 1 is accepted

Sort by
0
Bobi
Telerik team
answered on 15 Mar 2010, 08:17 AM
Hi Charles Bates,

You can add  custom colors to your ColorPicker using one of the following palettes:
                              MainPallette     -> using MainPaletteItemsSource
                             StandardPalette  -> uisng  StandardPaletteItemsSource
                             HeaderPalette    ->using  HeaderPaletteItemsSource

More examples you can find here:
http://demos.telerik.com/silverlight/#ColorPicker/ColorPaletteView


Greetings,
Bobi
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
Charles Bates
Top achievements
Rank 1
answered on 15 Mar 2010, 12:40 PM
Thanks for the reply.
Clicking on the link, though, provides this:

500 - Internal server error.

There is a problem with the resource you are looking for, and it cannot be displayed.

0
Bobi
Telerik team
answered on 15 Mar 2010, 12:46 PM
Hi Charles Bates,

We apologize for the inconvenience caused. 
Please follow the correct link:

http://demos.telerik.com/silverlight/#ColorPicker/ColorPaletteView

Kind regards,
Bobi
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.
Tags
ColorPicker
Asked by
Charles Bates
Top achievements
Rank 1
Answers by
Bobi
Telerik team
Charles Bates
Top achievements
Rank 1
Share this question
or