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

GetRegisteredDocksState Bug

6 Answers 203 Views
Dock
This is a migrated thread and some comments may be shown as answers.
shimon
Top achievements
Rank 1
shimon asked on 21 Jun 2007, 07:42 AM
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

6 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 21 Jun 2007, 10:59 AM
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
0
shimon
Top achievements
Rank 1
answered on 21 Jun 2007, 12:35 PM
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
0
Valeri Hristov
Telerik team
answered on 21 Jun 2007, 01:55 PM
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
0
shimon
Top achievements
Rank 1
answered on 21 Jun 2007, 02:21 PM
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
0
Valeri Hristov
Telerik team
answered on 22 Jun 2007, 09:01 AM
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
0
shimon
Top achievements
Rank 1
answered on 26 Jun 2007, 11:08 AM
Hello Valeri,

Its working this way.

Thanks,
Shimon Shed
Tags
Dock
Asked by
shimon
Top achievements
Rank 1
Answers by
Petya
Telerik team
shimon
Top achievements
Rank 1
Valeri Hristov
Telerik team
Share this question
or