Simulate Enter key event in RadMaskedTextInput

2 posts, 0 answers
  1. Marcelo
    Marcelo avatar
    1 posts
    Member since:
    Jun 2016

    Posted 16 Jun Link to this post

    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!

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 Jun Link to this post

    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.
  3. DevCraft banner
Back to Top