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

No more postback on enter?

7 Answers 174 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
PaulMrozowski
Top achievements
Rank 1
PaulMrozowski asked on 09 Dec 2008, 03:36 PM
I recently moved the RadAjax control into my master page and now we're noticing a few pages where you previously were able to just hit enter to cause a postback no longer work when Ajax is enabled. Is there some setting to restore the previous behavior or do I have to now write some Javascript code to re-enable this functionality?

7 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 11 Dec 2008, 12:39 PM
Hi Paul,

Do you have the autopostback property for the controls on this pages enabled? This should automatically allow postback on Enter key press.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
PaulMrozowski
Top achievements
Rank 1
answered on 11 Dec 2008, 02:42 PM
That doesn't have the same behavior - AutoPostBack="true" on textboxes forces a postback anytime the data in the textbox has changed. That's not the same as posting the form on Enter.
0
Maria Ilieva
Telerik team
answered on 15 Dec 2008, 09:17 AM
Hello Paul,

You could review the following help topic which elaborates on this matter. Test the provided approach and let us know if this works in your scenario.

All the best,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Vishal
Top achievements
Rank 1
answered on 25 Apr 2013, 03:36 PM
The link you provided is not working.

I am also facing same issue please provide fix for that as soon as possible
0
Maria Ilieva
Telerik team
answered on 29 Apr 2013, 08:15 AM
Hello Vishal,

As you noticed the last post in this thread is rather old so that it appears the previously provided link no longer exists. Also the described issue in this thread is mostly generic framework behavior and is not related with any of the RadControls directly. However if I did not understand your issue correctly and you are facing the problem with some of our controls I would suggest you to elaborate a bit more on the exact scenario you have so that we could test it locally and advise you further.

Regards,
Maria Ilieva
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.
0
Vishal
Top achievements
Rank 1
answered on 29 Apr 2013, 10:05 AM
Hi Maria,

My issue is that Postback on hitting enter key is not happening in RadTextBox as was happening in previous telerik control.               

Previously I was using 2009 version of telerik controls, in that  Postback was happening in RadTextbox with enter key pressed. But Now I am using  2013 version of telerik version , and this behaviour is not happening now.




0
Maria Ilieva
Telerik team
answered on 01 May 2013, 10:16 AM
Hi Vishal,

If you mean that in the current version of the control, after pressing Enter the RadTextBox value is not submitted to the server this is the default behavior of the control from last three releases. In order to have the value on the server you should firstly blur the control or just manually call blur for the RadTextBox on the client if Enter key is pressed.

Regards,
Maria Ilieva
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.
Tags
Ajax
Asked by
PaulMrozowski
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
PaulMrozowski
Top achievements
Rank 1
Vishal
Top achievements
Rank 1
Share this question
or