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

Load Dock layout from cookie on page load

1 Answer 75 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Nigel
Top achievements
Rank 1
Nigel asked on 08 Oct 2007, 02:56 PM
Hi

I've used the code on the Demo page to save/load state of RadDockLayout in a cookie and this works on postback - but how do I set the layout by reading the cookie on the initial page load - (the items in the dock are being created dynamically in the OnInit)

I have read the portal demo and see how it's done using a database - but hopefully a simple cookie is all I need.

Regards

Nigel

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 08 Oct 2007, 03:32 PM
Hello Nigel,

Initially you can create the docks in PageLoad - make sure you do so on !IsPostback. On postback they should be recreated in PageInit and since in PageLoad you have used !IsPostback, they will not be recreated twice. Hope this answers your question.

Regards,
Petya
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Nigel
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or