Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Dock > dock state in database

Not answered dock state in database

Feed from this thread
  • Clark avatar

    Posted on Jan 27, 2011 (permalink)

    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?

    Reply

  • Pero Pero admin's avatar

    Posted on Jan 28, 2011 (permalink)

    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.

    Reply

  • Say Hello to Telerik's PivotGrid for ASP.NET AJAX, Silverlight, WPF and WinForms. Now packed with OLAP support.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Dock > dock state in database
Related resources for "dock state in database"

ASP.NET Dock Features  |  Documentation  |  Demos  |  Step-by-step Tutorial  ]