All user controls on Raddock gets refreshed if refresh any one of them

4 posts, 0 answers
  1. Tulika Raj
    Tulika Raj avatar
    1 posts
    Member since:
    Nov 2009

    Posted 11 Nov 2009 Link to this post

    Hi,

    I add two different user controls on different zones on a page. If I refresh or submit any one of them, another one also get refreshed. Kindly suggest how  can I avoid server hit of other user control?

    Regards,
    Tulika
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 13 Nov 2009 Link to this post

    Hello Tulika,

    This is expected behavior because all of the RadDocks are placed within the same UpdatePanel/RadAjaxPanel and when AJAX postback is triggered by a certain RadDock control all of the docks within the zone (and this means within the UpdatePanel) will be updated/refreshed.

    To avoid this behavior you can add the dynamically created RadDocks to the Controls Collection of an UpdatePanel (when created dynamically) and then with client script (loaded from the server) dock them to the zone you wish. For your convenience I have attached a project that implements the above described scenario.

    Please do not hesitate to contact us if you have any other questions.


    Regards,
    Pero
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. noor
    noor avatar
    1 posts
    Member since:
    Jun 2010

    Posted 04 Jun 2010 Link to this post

    Hi, I have same problem of refreshing all users control in the different docks ,  so i looked to the Attached project , can you please explane how is it work ? we have Default.aspx , DefaultcCs.aspx  , AddToForm.aspx  and WebUserControl.ascx , how are these pages working together?
    And what if im using a master page and the script Manager are in master page?

     thanks
  5. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 09 Jun 2010 Link to this post

    Hello Noor,

    The same approach is implemented in a clearer way in the following project from our Code Library: http://www.telerik.com/community/code-library/aspnet-ajax/docking/saving-state-of-dynamically-created-raddocks-in-database-using-hidden-updatepanel.aspx. You can easily modify the code to use a master page.

    The idea behind this example is to update the content of the hidden update panel. When a dock is moved, or some of its command are pressed, an ajax call is triggered and the invisible update panel is the one that gets its content updated. Since the panel is hidden, it will seem like nothing on the page has changed.


    Best wishes,
    Pero
    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