Hi guys,
I'm having a little trouble trying to get the RadDock working.
Here is my scenario:
I have a windows form which contains a RadPageView. Inside one of those tabs I have multiple RadSplitContainers which are giving me left, center, right and bottom panels. The left, right and bottom ones are fixed with the center expanding with the form/window. In each of these I need to house UserControls or Forms.
But how?
I've dropped a RadDock into a panel and set it to fill the parent. I've then created both a UserControl and a Form which at run time (Form1_Load) either one gets inserted into the RadDock. Something like this (ucBBMain is my UserControl):
UserControl uc = new ucBBMain();
radDock1.DockControl(uc, DockPosition.Fill);
But I get an error:
"Invalid DockTabStrip for a DockPosition.Fill operation."
I also tried this but get the same error:
UserControl uc = new ucBBMain();
HostWindow host = new HostWindow(uc, DockType.Document);
radDock1.DockControl(host, DockPosition.Fill);
Very same happens with a Form.
So how can I put UserControls or Forms into a RadDock where their size is expanded to the RadDock they are inside?
Or in fact is a RadDock the correct control to use? Can I put a UserControl directly into the SplitContainer panels?
I'm having a little trouble trying to get the RadDock working.
Here is my scenario:
I have a windows form which contains a RadPageView. Inside one of those tabs I have multiple RadSplitContainers which are giving me left, center, right and bottom panels. The left, right and bottom ones are fixed with the center expanding with the form/window. In each of these I need to house UserControls or Forms.
But how?
I've dropped a RadDock into a panel and set it to fill the parent. I've then created both a UserControl and a Form which at run time (Form1_Load) either one gets inserted into the RadDock. Something like this (ucBBMain is my UserControl):
UserControl uc = new ucBBMain();
radDock1.DockControl(uc, DockPosition.Fill);
But I get an error:
"Invalid DockTabStrip for a DockPosition.Fill operation."
I also tried this but get the same error:
UserControl uc = new ucBBMain();
HostWindow host = new HostWindow(uc, DockType.Document);
radDock1.DockControl(host, DockPosition.Fill);
Very same happens with a Form.
So how can I put UserControls or Forms into a RadDock where their size is expanded to the RadDock they are inside?
Or in fact is a RadDock the correct control to use? Can I put a UserControl directly into the SplitContainer panels?