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

RadDockZone inside of other raddockzone , is possible ?

4 Answers 85 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Rafael
Top achievements
Rank 1
Rafael asked on 23 Jan 2009, 11:03 PM
Hello.

I like insert one radDockZone inside of other raddockzone.

<telerik:RadDockZone ID="RadDockZone2" runat="server" >
               <telerik:RadDock runat="server" ID="RadDock3">
                    <ContentTemplate>
                           TESTE
                     </ContentTemplate>
                </telerik:RadDock>                       

                <telerik:RadDock runat="server" ID="RadDock3">
                    <ContentTemplate>
                       <telerik:RadDockZone ID="teste2" runat="server">

                       </telerik:RadDockZone>
                     </ContentTemplate>
                </telerik:RadDock>                       
            </telerik:RadDockZone>

I need insert the TESTE inside of teste2 radDockZone

Some times when i move the teste to teste this go without problem but i dont know why some times when i move teste to teste2 , teste back to default position, teste2 dont accept teste.

With radDock for asp i do this without problem, but now , i dont now what is the problem.

Thank you

4 Answers, 1 is accepted

Sort by
0
Rafael
Top achievements
Rank 1
answered on 24 Jan 2009, 12:14 AM
Now i saw that the problem ocurred after postback.

In the first load of page i can change the position of all dock to all zone.

After postback , if i save the state , the problem ocurred.

Protected Sub Layout_LoadDockLayout(ByVal sender As Object, ByVal e As Telerik.Web.UI.DockLayoutEventArgs) Handles Layout.LoadDockLayout
        For Each state As DockState In CurrentDockStates
            e.Positions(state.UniqueName) = state.DockZoneID
            e.Indices(state.UniqueName) = state.Index
        Next

        'CarregarStatus()
    End Sub

 
    Protected Sub Layout_SaveDockLayout(ByVal sender As Object, ByVal e As Telerik.Web.UI.DockLayoutEventArgs) Handles Layout.SaveDockLayout
        'SalvarStatus(Me)

        CurrentDockStates = Layout.GetRegisteredDocksState()
    End Sub
0
Nikolay Raykov
Telerik team
answered on 27 Jan 2009, 08:47 AM
Hi Rafael ,

RadDock control is not intended to work in such scenarios but it does in some cases. Unfortunately your code needs a little modification.

You cannot dock the first RadDock inside the nested RadDockZone because they are contained in one dock zone. You could however put the second dock inside another dock zone and set this dock zone as a Forbidden Zone for the first dock. This way you will be able to achieve what you want.

For your convenience I have attached an example test page where you could see this in action. Please use it as a reference.

Sincerely yours,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Rafael
Top achievements
Rank 1
answered on 27 Jan 2009, 10:37 AM
Hello.

I dont understand how the forbidden atribute can help in this case because i need move the radDock3 to inside of radDockZone "teste2"

<telerik:RadDockLayout ID="RadDockLayout1" runat="server">
        <telerik:RadDockZone ID="RadDockZone1" runat="server" >
               <telerik:RadDock runat="server" ID="RadDock3" ForbiddenZones="RadDockZone1">
                    <ContentTemplate>
                           TESTE
                     </ContentTemplate>
                </telerik:RadDock>                                             
            </telerik:RadDockZone>  
            <telerik:RadDockZone ID="RadDockZone2" runat="server">
                <telerik:RadDock runat="server" ID="RadDock1" Height="300">
                    <ContentTemplate>
                       <telerik:RadDockZone ID="teste2" runat="server">

                       </telerik:RadDockZone>
                     </ContentTemplate>
                </telerik:RadDock>      
            </telerik:RadDockZone>
    </telerik:RadDockLayout>

with forbidden atribut i cannot move TESTE word to inside of teste2 zone.

Thank you



0
Nikolay Raykov
Telerik team
answered on 30 Jan 2009, 09:47 AM
Hello Rafael ,

You should set RadDockZone2 as a Forbidden zone for the first dock, e.g. RadDock3 - this is what was set in the example that I sent you. This way you will be able to move the first dock into the nested dock zone without a problem.

When the dock does not have this Forbidden Zone set you cannot dock it inside the nested dock zone because when you hover over the second zone the docks get re-positioned. This way you cannot actually drop the dock inside the nested dock zone.

Greetings,
Nikolay Raykov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Rafael
Top achievements
Rank 1
Answers by
Rafael
Top achievements
Rank 1
Nikolay Raykov
Telerik team
Share this question
or