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

How to diasble Enter key from committing

1 Answer 199 Views
DataForm
This is a migrated thread and some comments may be shown as answers.
Brian Pratt
Top achievements
Rank 1
Brian Pratt asked on 27 Aug 2013, 03:17 PM
I'm using a RadDataForm and when it goes into edit mode on a record, pressing the Enter key from inside any control within the Edit Template causes the "RadDataFormCommands.CommitEdit" command to be fired.

Is there any built in way to prevent this? I only want the commit to be fired when the user clicks the actual button

1 Answer, 1 is accepted

Sort by
0
Ivan Ivanov
Telerik team
answered on 30 Aug 2013, 10:59 AM
Hi,

Currently the only way to modify the default keyboard input bindings is to create your own CommandProvider that overrides them. However, since there has been a few requests to disable the handling of certain keys, we are going to introduce some more intuitive way. Here are two articles that illustrate how to work with the command provider and to override its default behavior: article1, article2

Regards,
Ivan Ivanov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DataForm
Asked by
Brian Pratt
Top achievements
Rank 1
Answers by
Ivan Ivanov
Telerik team
Share this question
or