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

RadcolorPicker

3 Answers 115 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Thiru
Top achievements
Rank 1
Thiru asked on 20 Feb 2013, 06:13 AM
Hi Expertise,

I am using the RadcolorPicker in my project. when i click the color picker, i can able to see the color palatte. Totally 25 colors only available in this control... Can i have more color to access in this control? it means, Is there any options for "More color" in this pallette.?

Thanks in advance.

Regards,
Thiruppathi V

3 Answers, 1 is accepted

Sort by
0
Krzysztof
Top achievements
Rank 1
answered on 21 Feb 2013, 02:20 PM

Dear Thiru,

If that helps you, this is how I define my own colors:

<telerik:RadColorPicker MainPaletteItemsSource="{Binding Colors}"></telerik:RadColorPicker>

And that's my colors collection definied in viewmodel

public List<Color> Colors { get; set; }
 
Colors = new List<Color>();
Colors.Add(System.Windows.Media.Colors.White);
Colors.Add(System.Windows.Media.Colors.Red);
Colors.Add(System.Windows.Media.Colors.Green);
Colors.Add(System.Windows.Media.Colors.Red);
Colors.Add(System.Windows.Media.Colors.Blue);
Colors.Add(System.Windows.Media.Colors.Yellow);
Colors.Add(System.Windows.Media.Colors.Purple);

Hope that helps!
Best regards
Krzysztof

0
Thiru
Top achievements
Rank 1
answered on 21 Feb 2013, 02:49 PM
Thanks for your reply.
Actually, what i want is, I have to add More color button in RadColorPicker control itself. I gone through the Telerik Demo Site.. i have seen sample demo what i want but the thing is, i do not have Q3 2012 Version Dll.. If we have this dll, we can show color editor when we click the more color button in RadColorPicker control. Please Check this URL

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

Thanks
Thiruppathi V
0
Krzysztof
Top achievements
Rank 1
answered on 21 Feb 2013, 03:56 PM
Hi again!

The "More colors..." button it's not a part of RadColorPicker control itself. In the example you mentioned above there is RadToolBar control which consist of few of RadColorPicker controls and this button, which opens EditColorsWindow window which again consist of RadColorEditor control. The color you pick from this window is added to RadColorPicker control. Does it make more sense now?

Best regards
Krzysztof
Tags
ScheduleView
Asked by
Thiru
Top achievements
Rank 1
Answers by
Krzysztof
Top achievements
Rank 1
Thiru
Top achievements
Rank 1
Share this question
or