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

dock state in database

1 Answer 47 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Clark
Top achievements
Rank 1
Clark asked on 27 Jan 2011, 10:41 PM
I have everything I need to start saving and loading dock state in the database but I have a strange question, how do initially get the dock state into my DB? Obviously I need the state to be in the tables before the page will even load, I was thinking I could have a test page set up with an original layout of the rad docks so I can grab the dock state in debug mode, is this even possible or is there a better way?

1 Answer, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 28 Jan 2011, 07:22 PM
Hello Clark,

I suppose you want to have a default set of docks that will be loaded, if the user doesn't have any saved docks in the DB. In my opinion you can use either of the following approaches to achieve the desired scenario:
  • Create the default docks dynamically if the DB is empty. Basically you perform a check in the Page_Init to see if any previous DockState is present, and if not the default set of docks is created. You need to know how this docks will look like, and where exactly will they be positioned.
  • Start with an empty layout, and populate the Docking layout yourself, as shown in the MyPortal demo. After the desired docks have been selected, you can get the state from the DB.

Greetings,
Pero
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Dock
Asked by
Clark
Top achievements
Rank 1
Answers by
Pero
Telerik team
Share this question
or