RadMaskedTextInput.MaxLength

3 posts, 0 answers
  1. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 17 Mar 2014 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 Mar 2014 Link to this post

    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.

     
  3. DevCraft banner
  4. WILLIAM
    WILLIAM avatar
    134 posts
    Member since:
    Jun 2012

    Posted 20 Mar 2014 in reply to Petar Mladenov Link to this post

    Thank you, that worked.  I did several searches for that, but didn't find the article you referenced.
Back to Top