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

Bug with AcceptsReturn MaskedTextInput, Alphanumeric

3 Answers 99 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 19 Oct 2012, 07:37 PM
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

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 24 Oct 2012, 04:08 PM
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.

0
Michael
Top achievements
Rank 1
answered on 24 Oct 2012, 05:01 PM
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
0
Tina Stancheva
Telerik team
answered on 29 Oct 2012, 11:32 AM
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.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Michael
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Michael
Top achievements
Rank 1
Share this question
or