GetRegisteredDocksState Bug

7 posts, 0 answers
  1. shimon
    shimon avatar
    37 posts
    Member since:
    Apr 2007

    Posted 21 Jun 2007 Link to this post

    Hello,

    I convert your example "PortalSiteCS" into a UserControl with some changes for our site.

    In the event OnSaveDockLayout i do:
    foreach (DockState State in DockLayout.GetRegisteredDocksState())

    but the State.DockZoneID returns always an empty string.
    I used hotfix 2007_1_621_trial_hotfix, 2007_1_619_trial_hotfix, 2007_1_615_trial_hotfix,
    2007_1_612_trial_hotfix.

    The only hotfix that works is 2007_1_423_trial_hotfix, but in this hotfix the postback of the commands don't work as i mentioned yesterday. Also when i open a radwindow on a dockcomman it will open once then the second time it will freeze on loading the page.

    Can you check it please?

    We need it ASAP because we need to show the site to investors.

    Thanks,
    Shimon Shed
  2. Petya
    Admin
    Petya avatar
    869 posts

    Posted 21 Jun 2007 Link to this post

    Hi,

    1. About the State.DockZoneID problem - if you follow the page life cycle you will notice that when adding a new dock OnSaveDockLayout is called twice and the second call is exactly for that reason - to save state correctly and during this second call you will get the DockZoneID.

    2. About the window problem - I was not able to reproduce it. Would it be possible for you to create a simple page that reproduces the issue and instructions to reproduce the issue and we will take a look at it and try to provide an appropriate solution.


    Greetings,
    Petya
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. shimon
    shimon avatar
    37 posts
    Member since:
    Apr 2007

    Posted 21 Jun 2007 Link to this post

    Hello,

    In the second call to the OnSaveDockLayout the DockZoneID is an empty string.
    Its works only on hotfix 423.

    It work ok if its a Page but not if its a UserControl.
    Only hotfix 423 works ok in UserControl.

    Thanks,
    Shimon Shed
  4. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 21 Jun 2007 Link to this post

    Hi shimon,

    RadDock version 423 is quite different from the current version 621. On the other hand, we never experienced problems, such yours with any of the versions, posted in the forum and that's why we asked for a test application which could be used to observe the problem. Again, I kindly ask you for a simple application which will be immediately tested by a developer. We will respond with a solution or a suggestion as soon as we find one.

    Regards,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. shimon
    shimon avatar
    37 posts
    Member since:
    Apr 2007

    Posted 21 Jun 2007 Link to this post

    Hello Valery
    We managed to build an example based on your PortalSiteCS. We just made it working with an usercontrol instead of a page. THIS IS THE ONLY CHANGE WE MADE !  We sent a support ticket with the attached site.  We hope to read your comments ASAP.
    Have a nice day.
    Shimon
  6. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 22 Jun 2007 Link to this post

    Hi shimon,

    I am posting my answer from the support ticket here, in case anyone else has the same problem:

    To resolve the problem you should load the user control in Page_Init, not in Page_Load:

    protected override void OnInit(EventArgs e)
    {
     UserControl uc = (LoadControl("~/WebUserControl.ascx") as UserControl);
     form1.Controls.Add(uc);

     base.OnInit(e);
    }

    protected void Page_Load(object sender, EventArgs e)
    {
     // This code should be moved to Page_Init
     // UserControl uc = (LoadControl("~/WebUserControl.ascx") as UserControl);
     // form1.Controls.Add(uc);

    }


    The main requirement when working with RadDock is to create all RadDock controls in Page_Init, not later. When you load the user control in Page_Load, the RadDock controls are created in Page_Load (even if you create them in the Init event of the user control) and they cannot properly handle their client-side data and events.


    Sincerely yours,
    Valeri Hristov (Senior Developer, MCSD)
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  7. shimon
    shimon avatar
    37 posts
    Member since:
    Apr 2007

    Posted 26 Jun 2007 Link to this post

    Hello Valeri,

    Its working this way.

    Thanks,
    Shimon Shed
Back to Top