I'm creating a 'dashboard' on which the user can dynamically add dock controls. Each dock control contains a certain usercontrol.
Using the examples from the Telerik site, I already have created the dashboard and the functionality to add dock controls. But when I add a usercontrol, I get a null reference exception form the usercontrol. The usercontrol itself contains several buttons, which are null when I call dockLayout.Controls.Add(dock);
I'm not sure, but I think it has to do with the state of the page lifecycle.
The dock-widget example (http://www.telerik.com/help/aspnet-ajax/dock-widgets.html) I've using is probably the way to solve this problem, but the example doesn't explain how LoadControl() should be implemented. Is this the missing link? If so, can you give an example code, based on the provided example?