Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
700
Required fields/Field errors
posted

Hello,

We want to have a centralized method for displaying to a user that a field is required or has an error.  Probably with either a background or border color change.

What strategies have you used with the Infragistics controls to implement this?  Is there something built in that I am not seeing to manage this?

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    One thing you could do is create an Appearance in code and assign that same appearance to multiple controls. So say you wanted the back color of the reiquired fields to be red, you could do something like this: 

    private Appearance requiredAppearance = new Appearance();

    requiredAppearance.BackColor = Color.Red;

     

    this.ultraTextEditor1.Appearance = requiredAppearance;

    this.ultraTextEditor3.Appearance = requiredAppearance;

    this.ultraTextEditor5.Appearance = requiredAppearance; 

Children