How to make not all controls on the form run validation, but only part of them

Posted by: a.koneva on 23 May 2022, 4:57 pm EST

    • Post Options:
    • Link

    Posted 23 May 2022, 4:57 pm EST

    Hi

    I created some form with C1 controls. In click event of some button I would like to validate some part of the controls of the form but not all of them. Now I use ValidateChildren(ValidationConstraints.Enabled), but it causes validation of all the controls. It is not what I want.

    Best regards,

    Anna.

  • Posted 24 May 2022, 12:39 am EST

    Hi Anna,

    If you want to Validate only some C1 Input controls on your Form, you will need to iterate through all the controls on your Form and call the Validation methods for only the required C1 Controls. Kindly refer to the attached sample showing a simple implementation of the same.

    Validation_C1I.zip

    Kind Regards,

    Kartik

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels