So here's the setup... I have working code for a RadDockLayout with dynamically added controls from database records using 2008.0.826.20. This scenario has the RadDockLayout setup in a UserControl which needs to be dynamically added to a PlaceHolder control already on the page. When I setup and test the Docking solution with the UserControl placed on the page everything works as expected and the OnLoadDockLayout and OnSaveDockLayout events fire as expected. However, simply adding a PlaceHolder to the page and loading the UserControl dynamically during Page_Load the OnLoadDockLayout event never fires and state is not persisted.
The following is the code used to load the UserControl during Page_Load
Control _ctrl = LoadControl("App_Templates/TemplateGeneralContentNEW.ascx");
_ctrl.ID = "Test";
phMod.Controls.Add(_ctrl);
Any assitance or insight into why this is happening and how to correct it is greatly appreciated.
Jason
The following is the code used to load the UserControl during Page_Load
Control _ctrl = LoadControl("App_Templates/TemplateGeneralContentNEW.ascx");
_ctrl.ID = "Test";
phMod.Controls.Add(_ctrl);
Any assitance or insight into why this is happening and how to correct it is greatly appreciated.
Jason