GridViewColorColumn modifying RadColorDialog Colors

2 posts, 0 answers
  1. Dimitar
    Dimitar avatar
    1326 posts

    Posted 31 May Link to this post

    Hello Binu,

    Thank you for writing.

    You can access the editor in the CellEditorInitialized event. For example:
    private void RadGridView1_CellEditorInitialized(object sender, GridViewCellEventArgs e)
        var editor = e.ActiveEditor as GridColorPickerEditor;
        if (editor != null)
            var element = editor.EditorElement as GridColorPickerElement;
            RadColorDialogForm form = element.ColorDialog.ColorDialogForm as RadColorDialogForm;
            form.ShowCustomColors = false;
            form.ShowProfessionalColors = false;
            form.ShowSystemColors = false;

    Please let me know if there is something else I can help you with. 
    Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
  2. Binu
    Binu  avatar
    8 posts
    Member since:
    Apr 2012

    Posted 31 May Link to this post

    I have RadGridView with GridViewColorColumn . The default color picker dialog is far more advanced than what i need. I just need to allow user to pick basic colors. I see a ENUMS in RadColorDialog  class such as ShowBasicColors, ShowSystemColors, ShowWebColors, ShowProfessionalColors. 

    Question is, how do i modify this behavior from Grid?


    i need to show only basic colors.


    please help.



  3. DevCraft R3 2016 release webinar banner
Back to Top