Dock window stays at a fixed width

2 posts, 0 answers
  1. Sopheap Ly
    Sopheap Ly avatar
    12 posts
    Member since:
    Oct 2006

    Posted 18 Mar 2008 Link to this post

    Currently, the dock window is automatically resized relative to the size of dock manager or form in 'Filled' dock mode. What I want to do is to make the width of a dock window fixed. How is this possible?


  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 19 Mar 2008 Link to this post

    Hi Sopheap Ly,

    Currently, the functionality you're looking for is not supported for the Fill mode of docking window. A Dock window can be set to fixed width.

    In order to do that, set Size property to desired width inside the handler of its Resize event:

    void dockPanel2_Resize(object sender, EventArgs e)    
        dockPanel2.Size = new Size(200,0);  

    The new API for fixed docking window will be added to our future releases.

    If you have any questions, please contact me.

    Julian Benkov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top