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

    Hi
    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 Asp.net [code only with databse not withsession, cookies etc]
    answere me plz ASAP, its very very urgent for me rt now..

    thank
  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.

    DockState

     

    state = DockLayout.GetRegisteredDocksState()[0];

     

    Label1.Text =state.ToString();

    And the result was:
    {"UniqueName":"RadDock1","DockZoneID":"RadDockZone1","Width":"","Height":"","ExpandedHeight":"0",
    "Top":"0px","Left":"0px","Resizable":"False",
    "Closed":"False","Collapsed":"False","Pinned":"False","Title":"","Text":"","Tag":null,"Index":"0"}

    So, the preserved properties are:
    UniqueName,DockZoneID,Width,Height,ExpandedHeight,Top,Left,Resizable,Closed,Collapsed,Pinned,Title,Text,Tag,Index


    Please take a look at the following forum thread:
    http://www.telerik.com/community/forums/aspnet-ajax/docking/dynamically-adding-docks-loading-content-from-a-database.aspx

    "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,
    Sophy
    "

    Hope this helps!
Back to Top