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

Keep RadDock from Refreshing

1 Answer 50 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 15 Oct 2009, 06:59 PM

I have two pages in my applicaiton, both pages have the following basic structure:

 

...  
<asp:UpdatePanel runat="server" ID="xxx" UpdateMode="Conditional">  
    <ContentTemplate> 
        <telerik:RadDockLayout ID="xxx" runat="server">  
            <telerik:RadDockZone ID="xxx" runat="server">  
                <asp:UpdatePanel runat="server" ID="xxx" UpdateMode="Conditional">  
                    <ContentTemplate> 
                        <telerik:RadDock runat="server" ID="xxx">  
                            <ContentTemplate> 
                                <asp:UpdatePanel runat="server" ID="xxx" UpdateMode="Conditional">  
                                    <ContentTemplate> 
                                        ...  
 
                                    </ContentTemplate> 
                                </asp:UpdatePanel> 
                             </ContentTemplate> 
                         </telerik:RadDock> 
                     </ContentTemplate> 
                </asp:UpdatePanel>   
            </telerik:RadDockZone>   
        </telerik:RadDockLayout> 
    </ContentTemplate> 
</asp:UpdatePanel> 
...  
 

(note that each UpdatePanel has appropriate AsyncPostBackTriggers set)

One of the pages dynamically adds the RadDocks at run-time, and the other has the RadDocks hard-coded.  The issue is that when any RadDock is moved/minimized/closed within the dynamic page, all other RadDocks are refreshed.  When any RadDock is moved/minimized/closed within the hard-coded page, all other RadDocks remain untouched.  What I want is the latter effect, where I can alter one RadDock and others will remain untouched.

How can I make this happen?  Anything with ViewState?  With more/less UpdatePanels?  With changing UpdateModes?  Any help would be greatly appreciated.

~Ryan

 

 

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 20 Oct 2009, 11:42 AM
Hi Ryan,

Take a look at the following modification of the My Portal example. It uses a hidden UpdatePanel where the docks are added to, and loads a client script from the server to dock them to the respective dock zone. This way only the dock that is closed/moved/collapsed is refreshed and not all of the RadDocks present on the page.

Let us know if you have other questions.

Best wishes,
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.
Tags
Dock
Asked by
Ryan
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or