RadNumericTextBox

2 posts, 0 answers
  1. Mohsen
    Mohsen avatar
    9 posts
    Member since:
    Dec 2011

    Posted 16 Jun 2012 Link to this post

    Hi,
    I have implemented a pager template for for my radgrid as like as this example: RadGrid - pager template
    When i enter a number to RadNumericTextBox and press Enter, form default button action is raised. So i disabled form default button action, by body onkeydown event (returning false if keyCode==13). Now all things are OK in FF, i.e entering number to RadNumericTextBox  and pressing Enter, load the requested page.
    But...
    My  problem is in IE. It Seems, Entering number to RadNumericTextBox  and pressing Enter, does not fire ValueChanged event of  RadNumericTextBox.
    what is best way to solve this issue?( how does telerik pager template work correctly? )

    Any idea is appreciated.



    Regards.
    Mohsen
  2. Vasil
    Admin
    Vasil avatar
    1547 posts

    Posted 19 Jun 2012 Link to this post

    Hello Mohsen,

    Do not cancel the onkeydown, because this way you are preventing some internal functionality of the input control.

    Set AutoPostBack="true" to the RadNumericTextBox. This way it will make the postback itself instead of the default button.

    Regards,
    Vasil
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top