How to diasble Enter key from committing

2 posts, 0 answers
  1. Brian Pratt
    Brian Pratt avatar
    28 posts
    Member since:
    Apr 2010

    Posted 27 Aug 2013 Link to this post

    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
  2. Ivan Ivanov
    Admin
    Ivan Ivanov avatar
    1128 posts

    Posted 30 Aug 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top