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

How to Create a ResponseScript for this?

2 Answers 99 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 27 Oct 2010, 07:10 PM
Hello,

I have a RadAjaxManager in a master page, and a RadAjaxManagerProxy in a user control.  I have this setting:

<tel:RadAjaxManagerProxy ..>
<AjaxSettings>
<tel:AjaxSetting AjaxControlID="lnkCreateNew">
<UpdatedControls>
<tel:AjaxUpdatedControl ControlID="rapNewForm" />
			<tel:AjaxUpdatedControl ControlID="rtsForm" />
			<tel:AjaxUpdatedControl ControlID="rapUpdateSection" />
</UpdatedControls>
</tel:AjaxSetting>
</AjaxSettings>
</tel:RadAJaxManagerProxy>

OK, so when the create new button is clicked, the rad ajax panel is also updated, as well as a few other controls.  What I need to have happen is that when create new is clicked, a JavaScript method needs to run

I tried the following, neither work:

RadAjaxManager.GetCurrent(this.Page).ResponseScripts.Add("runCallback();");
rapUpdateSection.ResponseScripts.Add("runCallback();");

I have a debugger; in that client method and nothing runs.

Any ideas?

Brian

2 Answers, 1 is accepted

Sort by
0
Accepted
Maria Ilieva
Telerik team
answered on 28 Oct 2010, 11:43 AM
Hello Brian,

The RadAjaxManager ResponseScripts method looks ok to me and it should work correctly. Will it be convenient for you to open a regular support ticket and send us small runnable application which replicates the issue? We will test it locally and advise you further


Sincerely yours,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Mains
Top achievements
Rank 1
answered on 28 Oct 2010, 03:39 PM
OK, odd, it seems to work now.  Maybe it was related to another error I fixed.

Thanks.
Tags
Ajax
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Brian Mains
Top achievements
Rank 1
Share this question
or