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

RadPropertyGrid modify window color

1 Answer 122 Views
PropertyGrid
This is a migrated thread and some comments may be shown as answers.
Thiago
Top achievements
Rank 1
Thiago asked on 31 Jan 2012, 09:25 PM
Good afternoon,

I am using the component radpropertygrid and select the color need to hide tabs System and Web color picker, but I'm not succeeding.

How to perform this process on the properties of the component colors?

Thank you,
Thiago 

http://farm8.staticflickr.com/7032/6797461491_ce940494ed_z.jpg

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivan Petrov
Telerik team
answered on 03 Feb 2012, 12:47 PM
Hello Thiago,

Thank you for writing.

You can achieve this through the EditorInitialize event of the RadPropertyGrid. Here is a code snippet demonstrating how to do it:
private void radPropertyGrid1_EditorInitialized(object sender, PropertyGridItemEditorInitializedEventArgs e)
{
  if (e.Editor is PropertyGridColorEditor)
  {
    RadColorBoxElement element = ((PropertyGridColorEditor)e.Editor).EditorElement as RadColorBoxElement;
    element.ColorDialog.ColorDialogForm.ShowSystemColors = false;
    element.ColorDialog.ColorDialogForm.ShowWebColors = false;
  }
}

I hope this will be useful for you. Should you have further questions, I would be glad to help.

All the best,
Ivan Petrov
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
PropertyGrid
Asked by
Thiago
Top achievements
Rank 1
Answers by
Ivan Petrov
Telerik team
Share this question
or