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

Simulate Enter key event in RadMaskedTextInput

1 Answer 191 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 16 Jun 2016, 04:44 PM

Hi everyone,

I'm working on a feature which allows the user to use an onscreen keyboard. To do that, I need to simulate all the keys of the real keyboard. I have had success with all keys, except in the Enter Key over RadMaskedTextInput control. I would like to know if there are some way to do that from the code behind, throwing an event, or some way. I need that the RadMaskedTextInput  control does exactly what it does when I press enter in the physical keyboard.

Thanks for your replies!

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 20 Jun 2016, 07:18 AM
Hi Marcelo,

In MaskedInput Enter Key is just handled or not - this way the event propagates to the TextBox in the ControlTemplate. What can you do with Enter key in MaskedInput - you can only achieve multiple lines in some MaskedTextInputs with Mask of type a or l - "a10", "a20", "l10" , or no-mask (Mask=""). In these cases the Accepts Return property should be set to True (default value). If you really think this is needed in your applications you can check these posts for simulating events via Automation Peers in Silverlight.

Regards,
Petar Mladenov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Marcelo
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or