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

RadDock inside RadWindow

4 Answers 177 Views
Window
This is a migrated thread and some comments may be shown as answers.
alvin shih
Top achievements
Rank 1
alvin shih asked on 23 Nov 2009, 12:56 PM
I have rad dock inside a Rad Window and seems its not liking it.
throwing NotSupportedException:Placing Docking control in a panel or control that measures it with infinite width or height is not supported

I have my window inistially maximized but once I remove the maximize it throws this error.

4 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 23 Nov 2009, 04:19 PM
Hello Alvin,

You get this error, because the Docking control doesn't support to be measured with infinite size. You could fix this by setting Width and Height properties of the Docking control or the Width and Height properties of the RadWindow control.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
alvin shih
Top achievements
Rank 1
answered on 24 Nov 2009, 02:06 AM
is there a way to not have fixed width and height?
because i want it to resize automatically when the rad window is resized
0
Hristo
Telerik team
answered on 24 Nov 2009, 10:48 AM
Hi alvin shih,

There is a way - just put RadDocking in container that will not measure it with infinity size (like Grid panel with RowDefinition.Height=* or ColumnDefinition.Width=*

Let us know if you need more information.

All the best,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
alvin shih
Top achievements
Rank 1
answered on 25 Nov 2009, 02:28 AM
I just set the AllowUnsafeMode to true and everything works fine.
Tags
Window
Asked by
alvin shih
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
alvin shih
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or