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

Is moving docks between multi-level RadDockLayouts supported?

1 Answer 44 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Nate
Top achievements
Rank 1
Nate asked on 25 Sep 2013, 02:58 PM
I am attempting to implement multi-level row layouts, where the second-level layouts reside in the ContentTemplate of the first level docks. This configurations would allow me to move the first level items around within a main zone, carrying with them the contained second-level docks. I then also need to be able to move second-level docks between the sub-layouts. My initial attempt doesn't appear to work correctly and I am now attempting to distill the code into an example to post to show how it doesn't work (I'll post it when finished). I am able to move the rows around in the Main zone and dynamically create row sub-docks, but the movement of rocks to other row zones doesn't save. I was wondering if anyone has implemented this type of configuration before and would be able to provide a suggested solution.
Thanks, Nate

Here's the hierarchy or controls, where the rows and rowdocks are dynamically created.
<mainlayout - RadDockLayout>
   <mainzone - RadDockZone>
       <row - RadDock>
           <ContentTemplate>
               <rowlayout - RadDockLayout>
                   <rowzone - RadDockZone>
                       <rowdock - RadDock />
                        ... other dynamically created docks that also need to move between rowlayout/rowzones...
                   </rowzone - RadDockZone>
               </rowlayout - RadDockLayout>
           </ContentTemplate>
       </row - RadDock>

       ... other dynamically created row - RadDocks...
   </mainzone - RadDockZone>
<mainlayout - RadDockLayout>

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 30 Sep 2013, 12:52 PM
Hi Nate,

Most probably the inner RadDockLayout controls are causing the difficulties you are having. The dock layout is designed to handle the state and location of all docks on the page, so it is recommended to have only one on the page and to wrap all docks in it. Please try the following sample:
<telerik:RadDockLayout runat="server" ID="RadDockLayout1">
    <telerik:RadDockZone runat="server" ID="RadDockZone1">
        <telerik:RadDock runat="server" ID="RadDock1">
            <ContentTemplate>
                <telerik:RadDockZone runat="server" ID="RadDockZoneInner1">
                    <telerik:RadDock runat="server" ID="RadDockInner1">
                        <ContentTemplate>
                            <telerik:RadDockZone runat="server" ID="RadDockZoneInner2">
                                <telerik:RadDock runat="server" ID="RadDockInner2">
                                </telerik:RadDock>
                            </telerik:RadDockZone>
                        </ContentTemplate>
                    </telerik:RadDock>
                </telerik:RadDockZone>
            </ContentTemplate>
        </telerik:RadDock>
    </telerik:RadDockZone>
</telerik:RadDockLayout>
 
<asp:Button Text="text" runat="server" />

If you are still having difficulties, I would suggest opening a support ticket and sending a fully runnable sample that isolates the problem so that I can examine it locally and help you accordingly.

Regards,
Slav
Telerik
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 the blog feed now.
Tags
Dock
Asked by
Nate
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or