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

Save all Dock's sate info together

1 Answer 46 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Kia
Top achievements
Rank 1
Kia asked on 11 Mar 2008, 02:51 PM
Hi,

I have a page with several docks created in design time. Would like the state of each saving to a database, but there are a large number of items breaking a state object down. Is it possible to save the lot in one go?

eg, I can get GetState.ToString, but then is it possible to somehow apply the lot in one hit with ApplyState?

Also occasionally I may want to programmatically move one of the existing docks around the layout control(eg:change order to the bottom). Is this possible?


Very much appreciated.
Kia

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 18 Mar 2008, 03:41 PM
Try to use the JavaScriptSerializer as shown in this example:
http://www.telerik.com/DEMOS/ASPNET/Prometheus/Dock/Examples/LoadSaveLayout/DefaultCS.aspx
Tags
Dock
Asked by
Kia
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or