Fix size dockpanels (WINFORMS2008Q2)

6 posts, 0 answers
  1. Jack
    Jack avatar
    21 posts
    Member since:
    Sep 2008

    Posted 25 Nov 2008 Link to this post

    Hello Telerik,

    I've read the following post: http://www.telerik.com/community/forums/winforms/dock/fixed-size-dockpanels.aspx

    It mentions that in the Q2 release something should be implemented having fixed size dock panels.

    The following is what I require:

    3 dockpanels:
    [A]
    ---
    [B]
    ---
    [C]


    The height of A and C should be fixed.
    the height of B should be filling the remaining space.


    How can this quest be accomplished?

    Kind regards,
    Jack
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 26 Nov 2008 Link to this post

    Hi Jack,

    This feature is still not supported by RadDock. We are still researching several possible solutions of this complex enhancement and implementation.

    For now you can use the DockingStateChanged event for this scenario. In the event handler set Size of [A] and [B] DockPanels.

     
    Regards,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Jack
    Jack avatar
    21 posts
    Member since:
    Sep 2008

    Posted 26 Nov 2008 Link to this post

    Hi Julian

    I don't know what to do with the solution you gave me. It does not solve the problem here. I was wrestling with the fixed sizes myself already. However, there is a big difference in when one maximizes the form and restores again, etc. It looks like the docking manager takes a percentage of the space for the panels and ignores the size setting

    Kind regards,

    Jack
  5. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 28 Nov 2008 Link to this post

    Hello Jack,

    You are absolutely right, the resizing logic of RadDock component is percentage based when the parent form size is changed. You can use the Resize event of the Form object and set size of your DockPanels.


    void DockForm_Resize(object sender, EventArgs e) 
        dockPanel1.Size = new Size(100, 200); 
     


    Sincerely yours,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. William
    William avatar
    55 posts
    Member since:
    Sep 2008

    Posted 29 Dec 2008 Link to this post

    Has this been fixed in Q3?  What I need is a fixed width panel on the left that is locked.  I don't want the user to be able to resize or float at all. All I need is to be able to hide and show in a fixed width.
    Thanks
  7. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 30 Dec 2008 Link to this post

    Hi William,

    The full featured dock layout with fixed panel will be introduced in Q1 2009 release. This is complex feature and more time is needed for implementation.

    If you have additional questions, please contact us.

    Regards,
    Julian Benkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for WinForms is Visual Studio 2017 Ready