Zones posting back, losing state

3 posts, 2 answers
  1. ataxia1
    ataxia1 avatar
    16 posts
    Member since:
    May 2007

    Posted 09 Jul 2008 Link to this post

    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. Answer
    Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 10 Jul 2008 Link to this post

    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
  3. Answer
    ataxia1
    ataxia1 avatar
    16 posts
    Member since:
    May 2007

    Posted 15 Jul 2008 Link to this post

    Thanks for the help.  I set autoeventwireup to TRUE and that fixed it.
Back to Top