Yet another DockPanel Size issue

7 posts, 0 answers
  1. DConroy
    DConroy avatar
    7 posts
    Member since:
    Apr 2007

    Posted 03 May 2007 Link to this post

    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?!

    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();



  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 04 May 2007 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. DConroy
    DConroy avatar
    7 posts
    Member since:
    Apr 2007

    Posted 04 May 2007 Link to this post

    I'm using the free trial of Winforms, I have no such property on the dockmanager or the dockpanel.
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 04 May 2007 Link to this post

    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
  6. DConroy
    DConroy avatar
    7 posts
    Member since:
    Apr 2007

    Posted 04 May 2007 Link to this post

    That did it, thanks.

    I love the way the document system works too...
  7. bute
    bute avatar
    10 posts
    Member since:
    Aug 2007

    Posted 02 Jan 2008 Link to this post

    Hmm, doesn't seem to be working any more in Q3?  Is this broken now?

    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

  8. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 03 Jan 2008 Link to this post

    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
Back to Top
UI for WinForms is Visual Studio 2017 Ready