This is a migrated thread and some comments may be shown as answers.

Dynamic Text Mask

1 Answer 63 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
SWN
Top achievements
Rank 1
SWN asked on 04 Aug 2015, 09:55 AM

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 ?

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 07 Aug 2015, 07:44 AM
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
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
SWN
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or