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

How to Save dynamic loaded Docks in database

1 Answer 69 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Golu
Top achievements
Rank 1
Golu asked on 06 May 2009, 10:48 AM
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

1 Answer, 1 is accepted

Sort by
0
Obi-Wan Kenobi
Top achievements
Rank 1
answered on 07 May 2009, 09:28 AM
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!
Tags
Dock
Asked by
Golu
Top achievements
Rank 1
Answers by
Obi-Wan Kenobi
Top achievements
Rank 1
Share this question
or