C1Input Field with EditMask allowing Null values

Posted by: d.vanlaer on 4 April 2018, 6:44 am EST

    • Post Options:
    • Link

    Posted 4 April 2018, 6:44 am EST

    Hi,

    I have a C1Input-Field with EditMask = “000.0000.0000.00”. My goal is to allow leaving the field empty or to enter values that suit the mask. Now when I leave the field empty, I get a PreValidationError.

    If the field was empty and is left untouched no error accurs.

  • Posted 4 April 2018, 8:36 am EST

    Meanwhile I found the solution: The databinding has to be initialized with parameter formattingEnabled set to False.

    VB.NET Code:

    inputField.DataBindings.Add(New System.Windows.Forms.Binding("Value",C1DataView,"Field",False))
    
Need extra support?

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

Learn More

Forum Channels