Hi,
I'm getting the folllowing error when adding a RadDock control to a RadDockZone in Page_Init.
What I'm doing:
Default.aspx
...uses LoadControl() to load ->
Layout.ascx (contains a RadDockLayout with a RadDockZone)
......Layout.ascx then dynamically creates and adds a
RadDock to the zone
The error only happens if I load the dock in Page_Init. If I load in Page_Load it works.
The markup from Default.aspx:
The code behind from Default.aspx:
The markup from Default.aspx:
The code behind from Layout.ascx:
The error I'm getting is:
Value cannot be null.
Parameter name: key
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Value cannot be null.
Parameter name: key
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: key]
System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument) +44
System.Collections.Generic.Dictionary`2.FindEntry(TKey key) +7455633
System.Collections.Generic.Dictionary`2.ContainsKey(TKey key) +4
Telerik.Web.UI.RadDockLayout.SetRegisteredDockParents(Dictionary`2 parents, Dictionary`2 indices) +317
Telerik.Web.UI.RadDockLayout.Page_InitComplete(Object sender, EventArgs e) +169
System.EventHandler.Invoke(Object sender, EventArgs e) +0
System.Web.UI.Page.OnInitComplete(EventArgs e) +8698006
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467
|
The problem seems to be internal to the RadDockLaout control. Any idea what is happening?
I'll attach the actual files to a support ticket so you guys can try running them.
Thanks.
-Al