RadPropertyGrid modify window color

2 posts, 1 answers
  1. Thiago
    Thiago avatar
    1 posts
    Member since:
    Aug 2011

    Posted 31 Jan 2012 Link to this post

    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,

  2. Answer
    Ivan Petrov
    Ivan Petrov avatar
    705 posts

    Posted 03 Feb 2012 Link to this post

    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).

Back to Top