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

Dock(fill) is incorrect

1 Answer 227 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Phillip Foster
Top achievements
Rank 1
Phillip Foster asked on 14 Jul 2010, 10:12 PM
This may not be the right place for this, but i've never really seen this happen before. 

Basically I have a user control (attachment 1). The control consists of a splitcontainer with 2 panels. panel 1 is a radgridview, panel 2 is a listbox. below the splitcontainer is a radtextbox. 

In my code i add that control with tabpage.contentpanel.controls.add()
and I use the Dock = DockStyle.Fill;

This does not turn out the way it should.(see attachment 2).
Any ideas why the Dock is not responding properly?



1 Answer, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 19 Jul 2010, 08:01 PM
Hello Phillip Foster,

Thank you for contacting us.

Image sp1.jpg shows that you have not docked the RadSplitContainer and the RadTextBox in your user control. Since you have only positioned them on the user control, they will remain exactly on their position, even though you set the dock property of the user control. If you would like them get resized, you will have to set the Dock properties of the RadSplitContainer and RadTextBox to Fill within the user control.

Kind regards,
Boryana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Phillip Foster
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Share this question
or