GridViewColorColumn modifying RadColorDialog Colors

5 posts, 0 answers
  1. Dimitar
    Admin
    Dimitar avatar
    2918 posts

    Posted 31 May 2016 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. 
     
    Regards,
    Dimitar
    Telerik
    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
    11 posts
    Member since:
    Apr 2012

    Posted 31 May 2016 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. Yanick
    Yanick avatar
    3 posts
    Member since:
    Dec 2018

    Posted 06 Dec 2018 in reply to Dimitar Link to this post

    Hi,

     

    Cannot find GridColorPickerElement

     

    Could you help me please!

  4. Dimitar
    Admin
    Dimitar avatar
    2918 posts

    Posted 07 Dec 2018 Link to this post

    Hello Yanick,

    Now you should use RadColorPickerEditorElement instead.

    Should you have any other questions do not hesitate to ask.

    Regards,
    Dimitar
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  5. Yanick
    Yanick avatar
    3 posts
    Member since:
    Dec 2018

    Posted 07 Dec 2018 in reply to Dimitar Link to this post

    Very good thank you for your time!
Back to Top