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

Trouble Setting Initial Width and Height of RadWindow

2 Answers 122 Views
Window
This is a migrated thread and some comments may be shown as answers.
Drew
Top achievements
Rank 1
Drew asked on 31 Aug 2009, 10:57 PM
My company did a refresh of the Telerik Silverlight controls over the weekend and some of our RadWindow code seems to be no longer functioning correctly.  We use the following lines to set the initial height and width of a RadWindow instaniated from the XAML file named 'dlg':

 

string sHeight = Globals.UserSettings.GetValue("ItemViewHeight");

 

string sWidth = Globals.UserSettings.GetValue("ItemViewWidth");

 

 

 

dlg.Height = double.Parse(sHeight);

 

 

 

dlg.Width = double.Parse(sWidth);

 

 

 

 

 

This code worked fine until the latest version.  Now the RadWindow seems to ignore any values we set in the Height and Width properties and always initializes the window to it's minimum displayable size.  All attempts to save and restore the previous window size are ignored.

Is anyone else seeing this behavior?

We are using Silverlight 3, and are obviously using the latest build of the Telerik Silverlight Controls.

Drew Stoddard

2 Answers, 1 is accepted

Sort by
0
Jamest
Top achievements
Rank 2
answered on 01 Sep 2009, 01:45 PM
I am experiencing the same behavior with the latest internal release. Setting the values in XAML or programmatically are ignored as the window takes the size of its contents. (Which in some of my cases a scroll viewer with many items makes it very wide).
   Jordan
0
Miroslav Nedyalkov
Telerik team
answered on 02 Sep 2009, 10:14 AM
Hello all,

We are aware of this issue. It was fixed and it will be included in the next latest internal build (at the end of the week). Hope this time-frame is good for you.

Kind 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.
Tags
Window
Asked by
Drew
Top achievements
Rank 1
Answers by
Jamest
Top achievements
Rank 2
Miroslav Nedyalkov
Telerik team
Share this question
or