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

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

3 Answers 72 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Tulika Raj
Top achievements
Rank 1
Tulika Raj asked on 11 Nov 2009, 12:49 PM
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

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 13 Nov 2009, 08:05 AM
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.
0
noor
Top achievements
Rank 1
answered on 04 Jun 2010, 08:50 PM
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
0
Pero
Telerik team
answered on 09 Jun 2010, 12:08 PM
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.
Tags
Dock
Asked by
Tulika Raj
Top achievements
Rank 1
Answers by
Pero
Telerik team
noor
Top achievements
Rank 1
Share this question
or