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

Execute a command when the Enter key is pressed

1 Answer 903 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Method
Top achievements
Rank 1
Method asked on 13 Sep 2013, 02:51 PM
<telerik:RadMaskedNumericInput Value="{Binding Quantity, Mode=TwoWay}">
    <telerik:RadMaskedNumericInput.InputBindings>
        <KeyBinding Key="Enter" Command="{Binding DoSomethingCommand}" />
        <KeyBinding Key="Tab" Command="{Binding DoSomethingCommand}" />
    </telerik:RadMaskedNumericInput.InputBindings>
</telerik:RadMaskedNumericInput>
I am trying to call to a command when the Enter key is pressed like an exemple above.
The Tab KeyBinding works perfectly, but the Enter doesn't work.

This behavior works in a TextBox, is this possible in a MaskedInput?

1 Answer, 1 is accepted

Sort by
1
Method
Top achievements
Rank 1
answered on 13 Sep 2013, 06:42 PM

 Problem solved.

 I just set the property AcceptsReturn to False.
Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Method
Top achievements
Rank 1
Answers by
Method
Top achievements
Rank 1
Share this question
or