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

RadAjaxManager as source in Ajax Settings

1 Answer 55 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Victor
Top achievements
Rank 1
Victor asked on 22 Apr 2010, 05:58 PM
Hi,

I have two questions about how telerik Ajax works (in my attempt to optimize a page):
1) In my page I have the RadAjaxManager control set to update several controls, because of some explicit Ajax Requests I have in javascript. Does this mean that for each postback (caused by other controls as well) the viewstate of these controls will be downloaded, and JS will be run on the AJAX handler to update the controls?

2) If I have a control that is set in RadManager's AjaxSettings to update two other controls. On one event it updates a control, and on another event it updates the other. Does this mean that on each event, it will download the viewstate of both controls and run the corresponding JS for both?

Thank you,
Victor

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 23 Apr 2010, 01:58 PM
Hello Victor,

Straight to your questions:

1) The controls added in the UpdatedControls collection of the setting where the RadAjaxManager is ajax initiator will be updated only after you invoked ajax by calling the ajaxRequest() client-side method of the manager. And they will not be updated when you perform callback via different control.

2) Both controls will be updated when the ajax initiator control postbacks, no matter which event is fired on the server.

Greetings,
Iana
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.
Tags
Ajax
Asked by
Victor
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or