LoadDockLayout never fired with dynamic RadLayout

4 posts, 0 answers
  1. Cedric
    Cedric avatar
    24 posts
    Member since:
    Mar 2008

    Posted 11 Jun 2009 Link to this post

    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 ?
  2. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 17 Jun 2009 Link to this post

    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.
  3. Cedric
    Cedric avatar
    24 posts
    Member since:
    Mar 2008

    Posted 18 Jun 2009 Link to this post

    The LoadControl is called during the Page_Init. So the issue is still there.
  4. Pero
    Admin
    Pero avatar
    1156 posts

    Posted 24 Jun 2009 Link to this post

    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.
Back to Top