Loading docking manager from XML-string

5 posts, 1 answers
  1. Johan
    Johan avatar
    11 posts
    Member since:
    Mar 2008

    Posted 29 Apr 2008 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 29 Apr 2008 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Johan
    Johan avatar
    11 posts
    Member since:
    Mar 2008

    Posted 29 Apr 2008 Link to this post

    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
  5. Answer
    Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 29 Apr 2008 Link to this post

    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
  6. Johan
    Johan avatar
    11 posts
    Member since:
    Mar 2008

    Posted 29 Apr 2008 Link to this post

    Ok, thank you very much!
Back to Top
UI for WinForms is Visual Studio 2017 Ready