RadDocking on two rows

1 Answer 103 Views
Docking
Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
Luigi asked on 02 May 2023, 12:56 PM

Hi,

I would like to create a docking layout with 4 controls spread over 2 rows as in the attached image. I achieved this result using compass, but I need to create the same layout by design.

Thank you

Luigi

 

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 04 May 2023, 08:16 AM | edited

In the meanwhile I tried to use the save/load layout system in order to prepare a layout configuration file to overwrite the original structure. Oddly loading the file I obtain the layout that I had when I saved it, but the internal controls are not loaded.

I think that it depends on the moment when I save (closing of main window) or when I load (loaded of the single panes) the layout.
I attached the layout when I saved it, when I loaded it, and the layout xml file.

Thank you

Luigi

Stenly
Telerik team
commented on 05 May 2023, 10:23 AM

The RadDocking control cannot save the Content of the panes by itself. However, we have an article, which shows how to save/load the contents inside the panes.

The following article shows how to correctly save and load the contents of the panes:

WPF Docking - Save/Load the Content of the Panes - Telerik UI for WPF

I hope the provided information will be of help to you.

1 Answer, 1 is accepted

Sort by
0
Accepted
Stenly
Telerik team
answered on 05 May 2023, 10:21 AM

Hello Luigi,

To achieve the layout from the shared image (raddocking2x2.png), you could use the following structure:

<telerik:RadDocking HasDocumentHost="False">
    <telerik:RadSplitContainer Orientation="Vertical">
        
        <!--Row 1-->
        <telerik:RadSplitContainer>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane>

                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane>

                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadSplitContainer>

        <!--Row 2-->
        <telerik:RadSplitContainer>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane>

                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>

            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup>
                    <telerik:RadPane>

                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadSplitContainer>

    </telerik:RadSplitContainer>
</telerik:RadDocking>

The produced result will look as follows:

Could you give this suggestion a try?

Regards,
Stenly
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
commented on 05 May 2023, 10:55 AM

Yes it is exactly what I need

thank you

Luigi

Tags
Docking
Asked by
Luigi
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or