How to Save dynamic loaded Docks in database

2 posts, 0 answers
  1. Golu
    Golu avatar
    41 posts
    Member since:
    Dec 2008

    Posted 06 May 2009 Link to this post

    plz I need ur help

    I have one confusion i.e. what we saved in database is dock's state or position, Indices?
    I wants to add docks dynamically. when I click on Save Button then only its saved in dataBase.
    In dynamically added dockes wr have to add some Usercontrols on customer's demand so how can we do it ?

    if their is possible then give me a code in [code only with databse not withsession, cookies etc]
    answere me plz ASAP, its very very urgent for me rt now..

  2. Obi-Wan Kenobi
    Obi-Wan Kenobi  avatar
    460 posts
    Member since:
    Aug 2007

    Posted 07 May 2009 Link to this post

    I made a simple test, to see which properties are preserved in the state, e.g.



    state = DockLayout.GetRegisteredDocksState()[0];


    Label1.Text =state.ToString();

    And the result was:

    So, the preserved properties are:

    Please take a look at the following forum thread:

    "I prepared a sample project which demonstrates how you could modify the Dynamically Created Docks example so that it saves the state into Database. Please, take a look at the attached archive and let us know in case you still experience any problems.

    Best regards,

    Hope this helps!
Back to Top