How to disable PreValidation about C1TextBox

Posted by: yasuike-na on 28 March 2019, 11:05 am EST

  • Posted 28 March 2019, 11:05 am EST

    I've replaced System.Windows.Forms.TextBox to C1.Win.C1Input.C1TextBox and then realized C1TextBox throws ValidatingEvent when i do like C1TextBox.Text = "aaa".
    its OK that PreValidation starts when i set texts but throwing ValidatingEvent after that is affects my other existing codes. (Over 5000 TextBox are in my program)
    Any suggestion please.
  • Marked as Answer

    Replied 28 March 2019, 6:15 pm EST


    Please set the TextDetached and CausesValidation properties of C1TextBox, such that:
    C1TextBox1.TextDetached = true;
    C1TextBox1.CausesValidation = false;

    A sample where the Validating event is not fired when these properties are set, is attached for your reference.

    Best Regards,
  • Replied 22 April 2019, 9:25 pm EST

    Sorry I'm late and thanks your reply.
    I cannot make it detached for the specification of my app,
    so I've found another way to duck the issue.
    by the way I'm very appreciate your reply.
    Thank you again.
Need extra support?

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

Learn More

Forum Channels