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

Replacing Save/LoadLayout with XMLSerializer

4 Answers 61 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 29 Nov 2011, 06:53 PM
I found that the default RadDocking.SaveLayout and LoadLayout functionality was not sufficient for my needs so I created a bunch of custom serializable classes that I populate from the RadDocking control. Initially this worked out for me but then I tested a scenario with a floating pane and could not get access to it. The RadDocking.Items collection only returns docked RadSplitContainers and the RadDocking.ToolWindows collection is a private field so I cannot access it from my code. Is there any way to access the ToolWindows in a RadDocking control so I can serialize them myself? If not would it be possible to get a public readonly property that returns an IEnumerable(Of ToolWindow) from the ToolWindows field? Alternatively, the RadDocking.Items collection would ideally contain the DocumentHost, docked SplitContainers and floating ToolWindows but I doubt that would be easily changed.

4 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 02 Dec 2011, 08:02 PM
Hi Jason,

The SplitContainers property of the RadDocking control returns all SplitContainers no matter docked or floating. It should help you resolve the floating windows.

Hope this helps.

Greetings,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jason
Top achievements
Rank 1
answered on 02 Dec 2011, 08:10 PM
Miroslav,

I did previously know about that property and it would be useful if it wasn't scoped as a friend property. Consider making it public if that will be the suggested way to do it.

Thanks,
Jason
0
Miroslav Nedyalkov
Telerik team
answered on 02 Dec 2011, 08:34 PM
Hello Jason,

We made it public in the 2011 Q3 release. If you upgrade to this version you will be able to use it.

Regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Jason
Top achievements
Rank 1
answered on 02 Dec 2011, 08:47 PM
Miroslav,

Perfect. I'm on Q2 and had already downloaded Q3 but just hadn't installed it yet.

Thanks,
Jason
Tags
Docking
Asked by
Jason
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Jason
Top achievements
Rank 1
Share this question
or