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

Persist dock layout state per UserID

1 Answer 80 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Adam Hubble
Top achievements
Rank 1
Adam Hubble asked on 10 Aug 2008, 06:13 PM
Hello, I need to enable users to persist their personal layout of docks to a database. On page load I need to be able to retrieve the dock state for the particular user. Are there any examples of this already?

I have had a good look through the forum and found various code/db samples on here, but none seem to relate a particular userID to a particular dock layout state.

I found PortalSiteVB.zip here:
http://www.telerik.com/community/forums/thread/b311D-mkttd.aspx

But the tables in the database supplied (Pages, PageWidget and Widgets) do not have a UserID column - so the persisted state is surely not related to a particular user?

I suspect that the MyPortal sample may help me, I found it here:
http://www.telerik.com/community/forums/thread/b311D-maehh.aspx

However the database in the first sample is a standard aspnet membership database that is created by regsql.exe (I think the developer attached this by accident?) and the second download 'MyPortalDB.zip' does not open, sql management studio will not attach it due to an error and the ldf file is missing (which may be the cause).


1 Answer, 1 is accepted

Sort by
0
Sophy
Telerik team
answered on 11 Aug 2008, 12:38 PM
Hello Matt,

You can programmatically create RadDock controls on the page related to the currently logged users based on database records. You will need to save the docks' states in a database for every user.
I suggest you take a look at this forum thread which provides a sample demo implementing the MyPortal online example using a database:
http://www.telerik.com/community/forums/thread/b311D-bkdgdg.aspx
You can further develop the provided logic so that it supports user login and loading of docks' states from the database depending on the currently logged in user.
Let us know if you need further assistance.

Best wishes,
Sophy
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Dock
Asked by
Adam Hubble
Top achievements
Rank 1
Answers by
Sophy
Telerik team
Share this question
or