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
40
Validation Library (validation for values such as phone, zipcode, etc)
posted

Version Info: [Infragistics2.Win.UltraWinEditors.v9.2] (and 8.1)

Does Infragistics provide a library of validators such as ValidatePhone(), ValidateZipCode, etc?

Our system has changed from using the practice of masking (validate as you type) to post-validation (validate when control loses focus).

I understand that the controls themselves perform some sort of validation, but would like to know if you provide any validation libraries specific to types of values (phone, zipcode, etc).

If you do, could you please provide a link to documentation or more info?

Thank you.

  • 69832
    Suggested Answer
    Offline posted

    Our UltraValidator component provides functionality similar to that of the MS ErrorProvider component. It extends an object property to all controls on the same form; this object exposes properties that allow you to specify the criteria for the validation, as well as the type of notification the user gets when validation fails.

    The OperatorCondition class, which can be used by the UltraValidator to specify the validation criteria, allows you to specify a Regex pattern which is used to validate the control's value, so you can validate phone numbers, zip codes, IP addresses, SS#'s, etc. using that class.