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

Loading docking manager from XML-string

4 Answers 49 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Johan
Top achievements
Rank 1
Johan asked on 29 Apr 2008, 10:03 AM
Hi!

I noticed that in the new release of Telerik there is a LayoutTree property added to the docking manager that makes it possible to get the output Xml as a string without first storing it to the harddrive. As I want to store my docking manager in a database this suites my needs very well.
BUT is there any corresponding way to take the DockingXml-string that I have read from the database and recreate the docking manager? The setter property of LayoutTree doesn't seem to do this for me.

best regards, Johan

4 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 29 Apr 2008, 11:25 AM
Hi Johan,

The LayoutTree property is for internal use for design time purposes. Please use the LoadXML / SaveXML methods of DockingManager or the DockLayout property instead.

If you have any additional questions, please contact me.

All the best,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Johan
Top achievements
Rank 1
answered on 29 Apr 2008, 11:50 AM
Hello,

then I suppose my question is if there is any way to construct a DockingManager from a string (instead of a file) that contains the same information that would be contained in the Xml-file that the LoadXML-function use to construct the DockingManager?

regards, Johan
0
Accepted
Julian Benkov
Telerik team
answered on 29 Apr 2008, 12:46 PM
Hello Johan,

The DockLayout property can be used for this. It works like Load/Save XML methods, but you should use string instead.

Greetings,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Johan
Top achievements
Rank 1
answered on 29 Apr 2008, 12:59 PM
Ok, thank you very much!
Tags
Dock
Asked by
Johan
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Johan
Top achievements
Rank 1
Share this question
or