Portal docks disappearing when saving state

4 posts, 1 answers
  1. brad
    brad avatar
    11 posts
    Member since:
    Apr 2008

    Posted 02 May 2008 Link to this post

    Hello,

    I've taken a copy of the code from the My Portal demo and when running it am having a problem I can't solve.

    Running the online demo works with no problems. When running the local project I can add docks to either zone. The problem arises when either moving them around, minimising or clicking in the dock title - all the docks disappear.

    From what I've been able to work out every second time RadDockLayout1_saveDockLayout fires the call to GetRegisteredDockState  returns an empty collection. This empty collection is then saved to session

    Is there something obvious that I've missed?

    Thanks,
    Brad.
  2. Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 07 May 2008 Link to this post

    Hi Brad,

    First of all, I would like to ask you download our online MyPortal example without making any modifications in it and test whether the problem you mention exists. If you are able to reproduce the issue with our online example on your side, please, check the IIS Session Timeout setting of the application. Otherwise, compare where there are differences between your test project and our online MyPortal demo.
    In case the above suggestions cannot help you solve the problem, send us a simple running application which reproduces the problem so that we can test it locally and research the problem. You will need to open a support ticket in order to have the right to attach files. Please, download a trial version of the RadControls for ASP.NET AJAX suite and you will have the right to open a support ticket. For your convenience I have attached a screenshot with instructions how to open a support ticket.

    Kind regards,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. brad
    brad avatar
    11 posts
    Member since:
    Apr 2008

    Posted 14 May 2008 Link to this post

    Hi Sophy,
    Thanks for the feedback. Turned out that setting AutoEventWireup was set to false on my test page - looks like it needs to be true for the dock controls to process correctly?
    Changing this has lead to the page init/load methods being fired twice whenever a dock is added or removed (but not when moved or when a postback is made). Is this normal behaviour or possibly being caused by something else?
    Regards,
    Brad

  4. Answer
    Sophy
    Admin
    Sophy avatar
    636 posts

    Posted 14 May 2008 Link to this post

    Hello Brad,

    If the AutoEventWireup attribute of the @ Page directive 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. That is why setting, this attribute to true has fixed your problem.

    The behavior you observe that init/load events are fired twice when adding/removing docks in the My Portal demo is normal as to create/remove the new docks without postback, the new docks are created into a hidden UpdatePanel and then transferred to a dock zone with client-side script executing second callback (which eliminates the need to update the whole dock zone and all of its children). The deleted docks are also firstly moved to the hidden update panel with a callback and after that deleted from the update panel.

    If you have other questions, do contact us again.

    Sincerely yours,
    Sophy
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top