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

Saving and loading dock state/position

2 Answers 43 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Edmund
Top achievements
Rank 1
Edmund asked on 10 Jan 2011, 04:11 AM
I am having trouble getting my dock to save state when I move my panels.  Is there a way to make dock automatically trigger save state without clicking a button or something?  Also is there a way to make my controls auto refresh in my docks?  Like setup a timer in update panel. Thanks

2 Answers, 1 is accepted

Sort by
0
Edmund
Top achievements
Rank 1
answered on 11 Jan 2011, 04:18 AM
So my code

<telerik:RadDockLayout runat="server" ID="RadDockLayout1" Skin="Office2007"
OnSaveDockLayout="RadDockLayout1_SaveDockLayout"
OnLoadDockLayout="RadDockLayout1_LoadDockLayout">

How can I get the system to trigger save state without say clicking a button?  Thanks!

 

0
Pero
Telerik team
answered on 11 Jan 2011, 04:19 PM
Hi Edmund,

To make the docks save their state on every user action you should set the AutoPostBack and CommandsAutoPostBack properties of the RadDock control to true. The following demo dynamically creates docks and stores their state in the Session on every user interaction with the docks: http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx.

Regards,
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
Edmund
Top achievements
Rank 1
Answers by
Edmund
Top achievements
Rank 1
Pero
Telerik team
Share this question
or