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

RadAjaxManager ResponseScripts are empty after a PostBack()

1 Answer 86 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Yoann
Top achievements
Rank 1
Yoann asked on 13 Sep 2012, 02:20 PM
Hi,

I've a page which contains a panel with a button to show/hide another panel and proceed to their update in the same time. I use RadAjaxManagerProxy and AjaxSetting to do that.

When I click the first time on the button, the update works fine with loading panel, etc... and after that the button just do a show/hide interaction with JQuery function that I add in ResponseScripts of the RadAjaxManager of the Page.

Since that all work fine. But when in the header of my masterpage I click on a button and it invokes a PostBack, the responseScripts of the RadAjaxManager is empty and my JQuery interaction doesn't work.

I've check the collection of ResponseScripts before and after and I think postback clear it. Can you help me please ?

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 18 Sep 2012, 11:18 AM
Hello Yoann,

Could you please post your page  markup as well as the related code behind so we could closely revise your scenario?
Also pleas note that registering script after ajax call should be done through the Page. Another suggestion is to ensure that the EnablePageHeadUpdate property of the RadAjaxManager is set to "true".

Kind 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
Yoann
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or