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

Setting DockPanel Width

1 Answer 88 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Prad
Top achievements
Rank 2
Prad asked on 29 May 2008, 08:27 PM
I walked through the list of forums for setting width of dockPanel on Dock Manager.

Here is my scenario: (Design Time)
1. I have a dockManager1 placed on my ShapedForm
2. I add a dockpanel to the left. (Which Contains a tree structure)

In the Load method, the rek calls for screem partitioned into two in Shell/Home Form. 

private

void Shell_Load(object sender, EventArgs e){

    dockingManager1.SuspendLayout();

     dockPanel1.Size =

new System.Drawing.Size(200, dockPanel1.Size.Height);

    dockingManager1.ResumeLayout();

}

The width doesnt set and occupies half of my host screen (not good).

Is there something wrong in what I am doing?? 

Fix or workaround is appreciated!!!

Pradeep

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 30 May 2008, 04:02 PM
Hi Pradeep,

Thank you for writing.

Your code is correct, and should work without any issues. Nevertheless, something specific to your scenario could be causing this undesired behavior. Please send me a small project that demonstrates this. You can do this by opening a new ticket in our support system. This will enable you to attach the project to the message.

I am looking forward to your response.

Best wishes,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Dock
Asked by
Prad
Top achievements
Rank 2
Answers by
Martin Vasilev
Telerik team
Share this question
or