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

Custom Color picker on the WebPalette

3 Answers 102 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
esw00
Top achievements
Rank 1
esw00 asked on 23 Apr 2011, 03:51 PM
I'm having a couple of issues with the Custom Color picker option on the WebPalette (EnableCustomColor):

<telerik:RadColorPicker ID="RadColorPicker1" runat="server" EnableCustomColor="True"
       ShowRecentColors="True" ShowIcon="True">
      </telerik:RadColorPicker>

When I select a color on the custom color popup, the color selected seems to be filtered by the luminosity slider on the right.  For example, if I select a dark red or blue, and the luminosity slider is all the way at the top (which it is by default), the selected color is #FFFFFF.  This was very confusing at first.  Is there a way to change this behavior so that the actual color picked is selected?

My second question is whether a default color can be specified for the Custom Color picker.  I'd like the color selected by the RadColorPicker to be initially selected in the Custom Color Picker.  Is that possible?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 26 Apr 2011, 12:34 PM
Hello Eric,

Unfortunately there is no option that will enable changing the behavior of the custom color dialog. It is opened with a predefined color - white(#ffffff). Currently the control doesn't allow changing this default setting. Still this could be a good addition to its functionality and we will introduce it in our discussions for future improvements. However I cannot guarantee in any way that this functionality will be implemented.

Hope this answers your questions.

Greetings,
Niko
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.

0
esw00
Top achievements
Rank 1
answered on 26 Apr 2011, 03:05 PM
Just to be clear, the intended behavior is for the color to remain #FFFFFF regardless of which color is picked in the dialog unless the user first adjusts the slider control?

To reproduce:

1. Click the custom color icon on the Webpallette tab.  The Custom Color dialog opens.
2. Click any color.  The selected color remains #FFFFFF.
0
Niko
Telerik team
answered on 26 Apr 2011, 05:05 PM
Hi Eric,

The popup allows the user to change the color using the HSB(Hue,Saturation,Brightness) color space. Please, note that in this color space the white color is represented by full Brightness, i.e. 100%. However no matter how the Hue or Saturation are changed, having the Brightness at 100 still represents white. Changing the color from the color area only changes Hue on the horizontal and Saturation on the vertical. The slider next to this area changes the Brightness, which will finally change the white predefined color.

Hope this explains the way the popup custom color dialog changes the color.

All the best,
Niko
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
esw00
Top achievements
Rank 1
Answers by
Niko
Telerik team
esw00
Top achievements
Rank 1
Share this question
or