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

ColorDialog not the same for me...

3 Answers 98 Views
ColorDialog
This is a migrated thread and some comments may be shown as answers.
Perry
Top achievements
Rank 1
Perry asked on 03 Oct 2008, 12:16 AM
Hi,

I have Q2 2008 SP1. Adding a color dialog to a form adds the dialog's symbol to the bottom of the designer. I don't see any way to get the properties page that the documentation shows.

And.. setting SelectedColor before showing the dialog does not affect the default color of the dialog.

3 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 03 Oct 2008, 03:27 PM
Hi Perry,

Thank you for the questions.

The screenshot in the documentation actually shows RadColorDialog as it appears in our examples. The property selector on the right-hand side are the setting which you can set in the example. You could preview the example by navigating to RadControls Examples --> Editors/RadColorDialog.

Since this is a form, all of the settings are done in code - you could use the example for directions on how to do that.

About the SelectedColor property, I have tried following code and it works without any issues - the SelectedColor appears in the "New" section of the form:
 
this.radColorDialog1.SelectedColor = Color.Green; 
this.radColorDialog1.ShowDialog(); 

It seems that you are expecting something else to happen. Could you give us more details on what your requirements are?

I have update your Telerik points for bringing our attention to documentation inexactness - it will be addressed in the next version.
 

Kind regards,
Martin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
pierre-jean
Top achievements
Rank 1
Veteran
Iron
answered on 29 Feb 2012, 04:49 PM
I have then same problem,
Setting the color with

    dlgColor.SelectedColor = Color.Green
works the first time I open the Dialog box,
any further access sets the "new" color to White
Any Idea ?

0
Julian Benkov
Telerik team
answered on 06 Mar 2012, 07:07 PM
Hi Perry,

Thank you for bringing our attention to this issue. I can confirm that it appears in our latest release. I logged it in our issue tracking system and it will be addressed in our upcoming service pack. I updated also your Telerik points.

You can work around the issue by calling the Reset method. Consider the sample below:


this
.radColorDialog1.Reset();
this.radColorDialog1.SelectedColor = Color.Green;
this.radColorDialog1.ShowDialog();

All the best,
Julian Benkov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Tags
ColorDialog
Asked by
Perry
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
pierre-jean
Top achievements
Rank 1
Veteran
Iron
Julian Benkov
Telerik team
Share this question
or