Ticket Q208345
Visible to All Users

Color of the TcxEditRepositoryButtonItem!

created 16 years ago

Hello,
I have a question:
How can I set color of the TcxEditRepositoryButtonItem?
Thanks in advance.
Zoltan

Show previous comments (1)

    Hello Ingvar,
    unfortunately, your example source does not work in my project.
    I created a test project.
    You can see a button on the Detail column.
    I would like to change the color of this button and use the same color as the grid uses in the current row.
    (If the current row is selected then blue if it is not selected then yellow.)
    I also would like to change font color of this button.
    Is there any solution for it?
    I think I use the latest version of your components.
    It is
    const
      cxGridVersion = '6.43';
    Sorry I typed incorrect version and IDE information in the Edit Issue page.
    I put it right.
    Thanks in advance.
    Zoltan

    DevExpress Support Team 16 years ago

      Hello Zoltan.
      Thank you for the sample project. Unfortunately, this functionality is not supported by the cxButtonEdit. However, to achieve the required functionality I recommend that you create two cxEditRepositoryButtonItems that contain buttons with corresponding glyphs, and switch them in the OnGetProperties event handler, based on the record's status (selected, unselected).
      Attached is an example that shows how to perform this task. Please try this solution, and let us know your results.
      NOTE: you should disable the column's HorzSizing property, because the button glyph will stretch on resizing the column.
      Best regards, Ingvar.

        Hello Ingvar,
          thanks for your answer.
          It works fine!!!
        Have a nice day and best regards, Zoltan

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.