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

[Solved] RadAjaxManager ignores first click and does a postback on second click

2 Answers 188 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
rh
Top achievements
Rank 1
rh asked on 18 Aug 2009, 03:59 AM
I have a RadAjaxManager wired up to a button control that upates an asp:panel. Ignored meaning that the postback occurs and the button click event handler fires, but the page isn't uploaded. This is inside a user control that is hosted inside an aspx page. The ajax settings are set inside the usercontrol itself.

What's even wierder is that the loading panel displays. It just won't update the panel.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Aug 2009, 06:40 AM
Hello,

You may have to use a AjaxManagerProxy in the user control. If you are not using one, take a look at the following help document which may assist youi on how to enable ajax within usercontrols.
RadAjax and WebUserControls

Hope this helps...
Princy :)
0
rh
Top achievements
Rank 1
answered on 18 Aug 2009, 02:22 PM
Using the AjaxManagerProxy works. Good suggestion.

However, the loading panel I want to use is in my master page which is why I was setting the ajax settings programatically so I could reference the loading panel in my master page. I'm not too sure how I would do that in the AjaxManagerProxy.

Also, it seems like it shouldn't need to require using the proxy and that setting it in code should work. Any ideas on what can be done differently to get it to work by setting it in code?
Tags
Ajax
Asked by
rh
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
rh
Top achievements
Rank 1
Share this question
or