All server controls seems to be reloaded on the server side with a partial post back

2 posts, 0 answers
  1. vincent
    vincent avatar
    61 posts
    Member since:
    Jun 2008

    Posted 23 May 2012 Link to this post

    We are using AjaxManager and have several child controls on one page. We noticed on the server-side every server control's Page_Load is being called. This is causing the page to load extremely slow.

    We only need 4 child controls to be reloaded.

    How can this be accomplished?
  2. Iana Tsolova
    Iana Tsolova avatar
    3388 posts

    Posted 25 May 2012 Link to this post

    Hello vincent,

    When a page is ajaxified, the page lifecycle is executed the same way it would do with regular postbacks. All the events on the server are fired the same way in the same sequence. The main difference is that only certain part of the page is sent back on the client and only certain part of the page content is updated.
    To improve the performce, you can make sure only the neccessary controls are visible, e.g. rendered after ajax.

    If you observed that all controls, the ones you update with ajax and the ones you do not want to update after certain ajax request, this is probably due to an issue with the ajax configuration. If this is your case, please send us a sample illustrating your scenario so we can further check it.

    Kind regards,
    Iana Tsolova
    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.
Back to Top