I've been attempting to dynamically create an RDZ, bascially the same way I created my dynamic RadDocks with no luck. I can dynamically create RadDocks and add them to an existing RDZ that's already on the page, but when I try to add RadDocks to a dynamically created RDZ nothing happens. Well I do get one error as such from my ScriptManager:
base {System.SystemException} = {"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."}
Any ideas what I'm missing here? I also tried to create the RDZ in the page_init with the same result fwiw.
private RadDock CreateRadDock()
{
RadDock dock = new RadDock();
dock.ID = string.Format("RadDock{0}", Session["Tid"].ToString());
dock.Title = string.Format("Dock {0}", Session["Tname"].ToString());
//other attributes here
RadDockZone newRadDockZone = new RadDockZone();
newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
newRadDockZone.UniqueName = string.Format("RadZone{0}", +(4));
newRadDockZone.MinHeight = Unit.Pixel(200);
newRadDockZone.MinWidth = Unit.Pixel(400);
newRadDockZone.Skin = "Default2006";
newRadDockZone.Controls.Add(dock);
}
base {System.SystemException} = {"Page cannot be null. Please ensure that this operation is being performed in the context of an ASP.NET request."}
Any ideas what I'm missing here? I also tried to create the RDZ in the page_init with the same result fwiw.
private RadDock CreateRadDock()
{
RadDock dock = new RadDock();
dock.ID = string.Format("RadDock{0}", Session["Tid"].ToString());
dock.Title = string.Format("Dock {0}", Session["Tname"].ToString());
//other attributes here
RadDockZone newRadDockZone = new RadDockZone();
newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
newRadDockZone.ID = string.Format("ctl00_ContentPlaceHolder1_RadDockZone{0}", +(4));
newRadDockZone.UniqueName = string.Format("RadZone{0}", +(4));
newRadDockZone.MinHeight = Unit.Pixel(200);
newRadDockZone.MinWidth = Unit.Pixel(400);
newRadDockZone.Skin = "Default2006";
newRadDockZone.Controls.Add(dock);
}