c1TextBox, saveblanks not working

Posted by: sebastian73 on 11 January 2018, 4:51 pm EST

    • Post Options:
    • Link

    Posted 11 January 2018, 4:51 pm EST

    I’m using de c1TextBox control for formating and validating an special string with the format “99-9999999-9”.

    If the user enters less caracters as specified in the edit mask, like “12345” I’m obtaining a value like “12-345-”, but I need to be stored as “12-345____-_”

    I’tryed the properties as follows:

    • EditMask = “99-9999999-9”
    • SaveBlanks = True
    • StoreEmptyChar = “_”
    • SkipOptional = False

      But it still returns the incomplete string.

      Any suggestions?

      Thanks in advance!
  • Posted 12 January 2018, 5:28 am EST

    Hi Sebastian!

    If you use C1TextBox.MaskInfo.StoredContent instead of C1TextBox.Text property to get the entered value, then you can get the desired result.

    Best,

    Meenakshi

Need extra support?

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

Learn More

Forum Channels