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

Zones posting back, losing state

2 Answers 34 Views
Dock
This is a migrated thread and some comments may be shown as answers.
ataxia1
Top achievements
Rank 1
ataxia1 asked on 09 Jul 2008, 02:29 PM
I'm working with the portal example docking scripts (http://www.telerik.com/demos/aspnet/prometheus/Dock/Examples/MyPortal/DefaultVB.aspx) which creates custom docks and saves the state.

Two issues:
1. Whenever a dock is dragg from Dock 2 to Dock1, the page does a full postback (non async).  Works fine, dragging from 1 to 2.
2. Any time the page is reloaded or posts back, (such as in issue 1) all the controls disappear and the state is lost.

Any suggestions?

Thanks

2 Answers, 1 is accepted

Sort by
0
Accepted
Sophy
Telerik team
answered on 10 Jul 2008, 10:41 AM
Hi Brad,

The problem you describe does not exist in the MyPortal online example. Please, make sure that you have attached the onsavedocklayout and the onloaddocklayout event handlers and that they are fired. Note that the default value of the AutoEventWireUp attribute of the @ Page directive in a VB aspx page is set to false.
If the AutoEventWireup attribute is set to true the ASP.NET framework automatically calls page event-handler methods without the need to use the Handles keyword or an explicit event delegate, otherwise, you will need to take care of calling page event-handler methods.

Let us know if you need further assistance.

Best wishes,
Sophy
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Accepted
ataxia1
Top achievements
Rank 1
answered on 15 Jul 2008, 07:44 PM
Thanks for the help.  I set autoeventwireup to TRUE and that fixed it.
Tags
Dock
Asked by
ataxia1
Top achievements
Rank 1
Answers by
Sophy
Telerik team
ataxia1
Top achievements
Rank 1
Share this question
or