Ticket Q353235
Visible to All Users
Duplicate

How to show mandatory fields in different style?

created 13 years ago

We try to use standard XAF validation system. Is it possible to show fields in GUI related with properties with validation attributes (for example [RuleRequieredProperty]) in different style - another font, color, with image or some special symbol like asterisk? How to realize it?

Comments (3)
Anatol (DevExpress) 13 years ago

    Hello Markus,
    The easiest way to accomplish this task is to use the Conditional Appearance module. If you do not wish to create appearance attributes for rules manually, you can add them in code via the CustomizeTypesInfo method.
    Alternatively, you can customize controls' style directly, as it is shown in the following Support Center issues:
    Highlight required field in detailview
    Mandatory fields
    We also have a corresponding suggestion: Validation - Introduce an immediate visualization for properties, which are marked with the RuleRequiredValue attribute (BackgroundColor, Border or Icon).
    Thanks,
    Anatol

    ME ME
    Markus Essl (Graz) 13 years ago

      Thanks for helpful response. It helps me a lot.

      Anatol (DevExpress) 13 years ago

        You are welcome!
        Thanks,
        Anatol

        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.