Hi, I'm creating my dockpanels in code(in a CAB workitem to be precise).
No matter what setting of the dockpanel I change, or call PerformLayout, etc..it always grows the panel to the entire width of the form.(The docking managers total available space)
The dock manager is in a usercontrol that is in a tab page of a radtabstrip. It covers the workable area of the form(below a ribbon bar).
What can do to fix this?!
No matter what setting of the dockpanel I change, or call PerformLayout, etc..it always grows the panel to the entire width of the form.(The docking managers total available space)
The dock manager is in a usercontrol that is in a tab page of a radtabstrip. It covers the workable area of the form(below a ribbon bar).
What can do to fix this?!
DockPanel dockPanel = new DockPanel();
dockPanel.Text = "Solution Navigator";
hostControl.DockManager.SetDock(dockPanel, DockPosition.Left);
dockPanel.PreferredDockSize = new System.Drawing.Size(50, 50);
dockPanel.PreferredFloatSize = new System.Drawing.Size(50, 50);
dockPanel.Size = new System.Drawing.Size(100, dockPanel.Size.Height);
hostControl.DockManager.PerformLayout(dockPanel, "Size");d
ockPanel.Show();
6 Answers, 1 is accepted
0
Hello David Conroy,
By default when you add DockPanel in an empty DockingManager, it grows to fill the entire size of docking manager.
To change this behavior you may set TdiContainerVisible to true, and initialize as required the Size property of DockPanel.
Kind regards,
Julian Benkov
the telerik team
Instantly find answers to your questions at the new Telerik Support Center
By default when you add DockPanel in an empty DockingManager, it grows to fill the entire size of docking manager.
To change this behavior you may set TdiContainerVisible to true, and initialize as required the Size property of DockPanel.
Kind regards,
Julian Benkov
the telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
DConroy
Top achievements
Rank 1
answered on 04 May 2007, 11:47 AM
I'm using the free trial of Winforms, I have no such property on the dockmanager or the dockpanel.
0
Hello DConroy,
TdiContainerVisible is a property of DockingManager (Behavior category in the properties grid).
Please download Q1 2007 release.
Best wishes,
Julian Benkov
the telerik team
Instantly find answers to your questions at the new Telerik Support Center
TdiContainerVisible is a property of DockingManager (Behavior category in the properties grid).
Please download Q1 2007 release.
Best wishes,
Julian Benkov
the telerik team
Instantly find answers to your questions at the new Telerik Support Center
0
DConroy
Top achievements
Rank 1
answered on 04 May 2007, 04:44 PM
That did it, thanks.
I love the way the document system works too...
I love the way the document system works too...
0
bute
Top achievements
Rank 1
answered on 03 Jan 2008, 02:15 AM
Hmm, doesn't seem to be working any more in Q3? Is this broken now?
We set true...
We set true...
dockingManager.TdiContainerVisible =
true;
then set Height...roundedPanel.Height = widget.Height;
but docking manager seems to take over and set whatever height it pleases...?
Thoughts appreciated...
GBute
0
Hello Gary,
Thank you for writing.
We have found issues related to the layout operation after changing the size from the Width or Height properties of DockPanel. These will be addressed in our upcoming release. Please use the Size property of DockPanel for the resizing operation.
If you have any additional questions, please contact us.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Thank you for writing.
We have found issues related to the layout operation after changing the size from the Width or Height properties of DockPanel. These will be addressed in our upcoming release. Please use the Size property of DockPanel for the resizing operation.
If you have any additional questions, please contact us.
All the best,
Julian Benkov
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center