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

RadMaskedTextInput.MaxLength

2 Answers 171 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
WILLIAM
Top achievements
Rank 1
WILLIAM asked on 17 Mar 2014, 01:36 PM
RadMaskedTextBox has been made obsolete and we have to use RadMaskTextInput.  RadMaskedTextBox had a MaxLength Property, but I'm not able to find this for the new control.  How do you set the MaxLength of the text allowed in the control?

Thanks!

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 20 Mar 2014, 08:09 AM
Hello William,

I guess you use RadMaskedTextInput. By default its Mask is "a20" which limits you to type 20 symbols maximum. However, if you use no-mask (Mask="") you can take advantage of MaskedInputExtension properties. You can use MaskedInputExtensions.MaxTextLength property to achieve your goal.
Please let us know if this helps you move forward.

Regards,
Petar Mladenov
Telerik
 

DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.

 
0
WILLIAM
Top achievements
Rank 1
answered on 20 Mar 2014, 02:03 PM
Thank you, that worked.  I did several searches for that, but didn't find the article you referenced.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
WILLIAM
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
WILLIAM
Top achievements
Rank 1
Share this question
or