Enter Key Behavior

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    15 posts
    Member since:
    Oct 2014

    Posted 22 Feb Link to this post

    I have a radwizard with 2 steps.  The first step has a couple of custom controls as well as some other text input fields.  The issue that I am seeing (in chrome and firefox) is when I select one of the text fields and hit enter, the wizard is firing a click event for one of the buttons on the custom controls.  What I would like to see is hitting enter fires the next button clicking event.  I thought that this is the default behavior of the radwizard.  Is there something that I may have set up improperly?  Or could I possibly set it programmatically to fire the next button click when enter is pressed?  Something like this?:

     

    $(document).ready(function () {
            $("form").bind("keypress", function (e) {
                if (e.keyCode == 13) {
                    $('RadwizardNextButton').click();
                }
            });
        });

     

    Thanks for any help.

  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 25 Feb Link to this post

    Hi Kevin,

    You should use the client side api of the control. The get/set active index should do the trick for your case. Please review the following documentation for more details.

    Regards,
    Peter Filipov
    Telerik
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top