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
665
UltraMaskedEdit with persiting mask
posted

Hi,

I have the requirement to input a MAC address using masked input and the mask should be persisted in the database. Can this be done using UltraMaskedEdit

Thanks a lot

Kind regards

Patrick

Parents
No Data
Reply
  • 12773
    Verified Answer
    posted

    Hello Patrik,

    You can use the UltraMaskedEdit to reach that requirement. You need to add a mask to UltraMaskedEdit, see the code sample:

    this.ultraMaskedEdit1.EditAs = Infragistics.Win.UltraWinMaskedEdit.EditAsType.UseSpecifiedMask;    
    this.ultraMaskedEdit1.InputMask = "AA-AA-AA-AA-AA-AA";
    this.ultraMaskedEdit1.MaxValue = 17;

    And you can retrieve the masked text after the user type it with the Value of the UltraMaskedEdit. The value will contain the text and the mask also.

    I hope this helps.

    Best regards,
    Dimi
    Developer Support Engineer
    Infragistics Inc.

Children