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

Saving entire form layout

1 Answer 146 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Baris
Top achievements
Rank 1
Baris asked on 28 Sep 2009, 08:33 PM
I've been trying to find a (clean) way to save my form's layout -- including the window size, the RadDock layout, and the layout of each grid within each RadDock section (there are 4). So far the only way I've been able to do this requires 6 files.

1 file for the window size/location
1 file created by radDock.SaveToXml()
4 files created by each gridView.SaveLayout()

I tried combining these, but have been unable to make SaveToXml() to play nice as a section of an XML file.

I've also tried serializing the whole form (stack overflow); also tried serializing just the radDock (but then I lose all the data in the grids when I load) -- the latter doesn't save window location/size anyway.

Is there an easy way to accomplish what I'm trying to do, or do I need to become an XML/serialization grand-master?

Thanks,
Baris

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 02 Oct 2009, 02:27 PM
Hello Baris,

The best solution for you if you want to serialize the size/location of the form, the layout of RadDock and the layout of the RadGridViews is to use separate xml files.

As to the RadGridViews and their data, you can save and load the data of the controls contained in RadDock by following this online help topic.

If you have additional questions, feel free to contact me.

Best wishes,
Nikolay
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
General Discussions
Asked by
Baris
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Share this question
or