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

Rad Window opens too big

1 Answer 103 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
jason
Top achievements
Rank 1
jason asked on 27 Mar 2012, 04:36 PM
I have a rad window that contains a data grid in it.  I have IsRestricted set to true but when I first open the window it's width is wider than the screen.  Once I click on the window it then resizes to fit the screen.  How can I fix this?  Attached is an image.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivo
Telerik team
answered on 29 Mar 2012, 11:45 AM
Hi Jason,

Actually this is a bug at our side. I have logged it into our PITS and you can track its status here. However there is an easy workaround for this. You can set the RadWindow's MaxWidth and MaxHeight to the current application size. Here is sample code:
var plugin = Application.Current.Host.Content;
Size size = new Size(plugin.ActualWidth, plugin.ActualHeight);
RadWindow window = new RadWindow();
window.MaxHeight = size.MaxHeight;
window.MaxWidth = size.MaxWidth;

I hope this workaround is acceptable for you.

Greetings, Ivo
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Window
Asked by
jason
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or