This is a migrated thread and some comments may be shown as answers.

Dock window stays at a fixed width

1 Answer 60 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Sopheap Ly
Top achievements
Rank 1
Sopheap Ly asked on 18 Mar 2008, 11:32 AM
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?

Regards,

Sopheap

1 Answer, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 19 Mar 2008, 01:05 PM
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.


Regards,
Julian Benkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Sopheap Ly
Top achievements
Rank 1
Answers by
Julian Benkov
Telerik team
Share this question
or