Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PropertyGrid > RadPropertyGrid modify window color

Answered RadPropertyGrid modify window color

Feed from this thread
  • Thiago avatar

    Posted on Jan 31, 2012 (permalink)

    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

    Reply

  • Answer Ivan Petrov Ivan Petrov admin's avatar

    Posted on Feb 3, 2012 (permalink)

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

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > PropertyGrid > RadPropertyGrid modify window color