Bug with AcceptsReturn MaskedTextInput, Alphanumeric

4 posts, 0 answers
  1. Michael
    Michael avatar
    2 posts
    Member since:
    Oct 2012

    Posted 19 Oct 2012 Link to this post

    There seems to be a Bug within the MaskedTextInputControl. When I set the Mask to Alphanumeric ( f.e. a20 ) I can hit return to break the line. When Setting Mask to literals ( f.e. l20 ) this behavior disappers.

    Is there a known workaround so I can set my TextInput to alphanumeric without being able to break the line ?

    Bug can be easily reproduced at the Demo

    See here : http://s1.directupload.net/file/d/3048/o8ymta7s_jpg.htm
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 24 Oct 2012 Link to this post

    Hi Michael,

    Thank you for bringing this issue to our attention. I logged it as a bug in our PITS under the name "MaskedInput: The AcceptReturn=True doesn't work in a MaskedTextInput with Mask="l20"" and you should be able to track it from tomorrow the latest.

    I also updated your Telerik account accordingly.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael
    Michael avatar
    2 posts
    Member since:
    Oct 2012

    Posted 24 Oct 2012 Link to this post

    Well I thought this would be the desired behavior. The real bug for me seems to be, that you can set AcceptReturn=False and you can still break the line when hitting Return
  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 29 Oct 2012 Link to this post

    Hi Michael,

    I am not sure which version of the controls you use in your application. However, with the Q3 2012 release (version 2012.3.1017) you should be able to set the AcceptReturn property to False and disable the multiline functionality of the RadMaskedTextInput control. You can try the attached sample where I used an alphanumeric mask "a20" and the first control handles the Enter key by setting a new line in its content, while the second control doesn't allow multiline input at all.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top