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

    Posted 16 Jun 2012 Link to this post

    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.
    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.

  2. Vasil
    Vasil avatar
    1642 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.

    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.
Back to Top