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

LoadDockLayout never fired with dynamic RadLayout

3 Answers 57 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Cedric
Top achievements
Rank 1
Cedric asked on 11 Jun 2009, 01:52 PM
I have created a web control based on your "Adding Controls Inside Dynamically Created Docks" example.

This web control contains a RadDockLayout and RadDockZones are created dynamically during Page_Init.
In my main page, I load dynamically this web control using LoadControl() method.
When the control is loaded, event LoadDockLayout is never fired, but SaveDockLayout is.

If I turn this web control into an ASPX web page, everithing is ok.

Any suggestion ?

3 Answers, 1 is accepted

Sort by
0
Pero
Telerik team
answered on 17 Jun 2009, 10:44 AM
Hi Cedric,

I believe the problem is, that the LoadControl() method is not called during Page_Init. The User Controls should be loaded when the page is initialized, or they will not be recreated on a postback. Can you please make sure that the controls are loaded during Page_Init, and let us know if the problem still exists? We will do our best to help you.

Greetings,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Cedric
Top achievements
Rank 1
answered on 18 Jun 2009, 06:29 AM
The LoadControl is called during the Page_Init. So the issue is still there.
0
Pero
Telerik team
answered on 24 Jun 2009, 11:32 AM
Hi Cedric,

I have created a sample project with a Web User Control that contains RadDockLayout, RadDockZones and RadDocks created dynamically. This control is loaded dynamically on Page_Init using LoadControl() method (as described in your scenario). There is not any unexpected behavior. All of the events are fired (including the LoadDockLayout) and the state is preserved on post back. The project is attached to the thread.

Can you please open a support ticket and send us the full source code of your project, if you still cannot solve your problem? We will do our best to provide a solution.


Kind regards,
Pero
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Dock
Asked by
Cedric
Top achievements
Rank 1
Answers by
Pero
Telerik team
Cedric
Top achievements
Rank 1
Share this question
or