RadAjaxManager as source in Ajax Settings

2 posts, 0 answers
  1. Victor
    Victor avatar
    6 posts
    Member since:
    Nov 2008

    Posted 22 Apr 2010 Link to this post

    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
  2. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 23 Apr 2010 Link to this post

    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.
Back to Top