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

Subsequent callback not fired.

4 Answers 82 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 09 Dec 2009, 09:30 PM
i have a textbox and a button wrapped in an AjaxPanel. For the textbox, autopostback=true and i am handling the Textchanged event on the server. My problem is that when i start typing in the textbox and then click the button to submit the form, it performs the callback for the textchanged event but the click event for the button is not fired. So the user ends up having to click the button twice to submit the form (if there are going from typing the texbox to clicking the button). Is there a way around this problem? I realize this is probably a bigger problem than just with Telerik Ajax callbacks (like Microsoft and asp.net and postback and events, etc). Is there a workaround?

4 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 10 Dec 2009, 02:57 PM
Hi, David, 

 Just try setting Autopostback=false for the textbox.

Regards,
Tsvetoslav
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Dave
Top achievements
Rank 1
answered on 10 Dec 2009, 03:06 PM
I would but i need things to happen when they leave the textbox. I just painted a very simplistic picture for an example. In our project, we have multiple textboxes and buttons and i need to perform a callback whenever the user changes the textbox. So with the situation presented in my first post, with autopostback=true set on the textbox, is there a work around to fire the button click event as well as the textchanged event when i click the button?
0
Tsvetoslav
Telerik team
answered on 11 Dec 2009, 02:27 PM
Hi,

Attached is one possible approach to the issue. Another solution is to use our RadAjaxManager control's ajaxRequest method:


Greetings,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tsvetoslav
Telerik team
answered on 11 Dec 2009, 02:28 PM
Hi,

Attached is one possible approach to the issue. Another solution is to use our RadAjaxManager control's ajaxRequest method:

http://www.telerik.com/help/aspnet-ajax/ajxajaxmanager.html

Greetings,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Ajax
Asked by
Dave
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Dave
Top achievements
Rank 1
Share this question
or