Dynamic Text Mask

2 posts, 0 answers
  1. SWN
    SWN avatar
    1 posts
    Member since:
    May 2012

    Posted 04 Aug 2015 Link to this post

    I want to set a RadMaskedTextInput with three dynamic mask options:

    AA-AA-AA

    A-AAA-AA

    AA-AAA-A

     the hyphen needs to move based on the input like:

     

    example 1: 85-TH-10

    example 2: T-HW1-31

    example 3: 85-TNH-1

     Anyone knows how I need to do this ?

     

  2. Martin
    Admin
    Martin avatar
    1101 posts

    Posted 07 Aug 2015 Link to this post

    Hello,

    You should be able to achieve your requirement by subscribing for the ValueChanged event of the masked input control and inside its handler change the value of the Mask property based on the new input Value. Please try this approach and let me know if it works for you.

    Regards,
    Martin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top