dock state in database

2 posts, 0 answers
  1. Clark
    Clark avatar
    26 posts
    Member since:
    Jan 2011

    Posted 27 Jan 2011 Link to this post

    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?

  2. Pero
    Pero avatar
    1156 posts

    Posted 28 Jan 2011 Link to this post

    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.

    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.
Back to Top