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

Setting Nocolor asTransparent

3 Answers 92 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
Sivakumar
Top achievements
Rank 1
Sivakumar asked on 03 Apr 2013, 10:01 AM
Hai,

Is it any other property for setting nocolor as Transperant color?

If i set Nocolor in the RadcolorPicker it always Display in Black Color
Please Guide me to do that.

Thanks,

Regards,
Sivakumar

3 Answers, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 08 Apr 2013, 08:11 AM
Hello Sivakumar,

When the Empty Color Button is clicked, the color that is displayed in the preview area is white. Please clarify how you have configured the RadColorPicker in order to display a black color as empty color.

As for the functionality you requested, could you elaborate how should the transparent control be applied and how to indicate that the current color is transparent so that I can help you achieve it if possible?

All the best,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Don
Top achievements
Rank 1
answered on 07 Apr 2014, 07:08 AM
Hey Slav,

I have a similar problem. I'm storing the 'empty' colour in our DB, then when I reload the colour picker with the empty colour (rgba(0,0,0,0)) the control seems to automatically set white as the selected colour. If I then resend the page to be saved, 'white' is saved to the DB. How can I stop the control from setting white as the default? I can't really do this in code as I can't tell if the user has deliberately set white or not.
0
Slav
Telerik team
answered on 09 Apr 2014, 10:42 AM
Hello Don,

It is a known issue that when a blank color is set in the SelectedColor property of RadColorPicker, the control indicates that a white color is selected, however the actual selected color should be blank, unless you change it manually. I have attached a page that demonstrates this. Please check it and let me know if it matches your scenario and if I have missed something.

Also, note that the color you have mentioned is not empty, but black. Please clarify which of the two values you set in the color picker.

Regards,
Slav
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

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