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

RadWindow not sizing as expected

3 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 30 Nov 2009, 09:36 AM
Hi,
   After using the internal build 2009.3.1127 all my RadWindows are not displaying as expected. The width and height seem to get ingored or get set to something completely differrent. These worked fine before trying the internal build.
<controls:RadWindow x:Class="CSEServiceManager.Preferences.CategoryMessageTemplate" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:controls="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation" 
    xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" 
    xmlns:telerikEditor="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Editor" 
    xmlns:telerikInput="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Input" 
    Width="500" Height="400" WindowStartupLocation="CenterScreen" WindowState="Normal"  Header="Category Message Template"  telerik:StyleManager.Theme="Windows7" LocationChanged="RadWindow_LocationChanged">  
    <Grid x:Name="LayoutRoot" Background="White">  
        <Grid.RowDefinitions> 
            <RowDefinition Height="75" /> 
            <RowDefinition Height="25"/>  
            <RowDefinition Height="*"/>  
            <RowDefinition Height="30" /> 
        </Grid.RowDefinitions> 
 
        <TextBlock x:Name="txtMain" Grid.Row="0" FontSize="12" Height="Auto" Margin="5,5,5,0" HorizontalAlignment="Left"  VerticalAlignment="Top" Width="Auto"   
                   Text="When a new service request is opened in this category this template will populate the message field automatically. The template will be applied to the subtree of the current category." TextWrapping="Wrap"/>  
       
            <TextBlock Grid.Row="1" x:Name="txtCategory" FontSize="12" Height="Auto" Margin="5,5,5,0" HorizontalAlignment="Left"  VerticalAlignment="Top"   
                       Width="Auto" Text="Category : %Category%" TextWrapping="Wrap"/>  
 
            <telerikEditor:RadEditor Visibility="Collapsed"   Grid.Row="2" x:Name="RadEditor1" PathToHelperXap="../ClientBin/RadEditorHelper.xap">  
             
        </telerikEditor:RadEditor> 
 
 
 
        <Button Grid.Row="4" Width="60" Content="Cancel" Click="Button_Click" HorizontalAlignment="Right" Margin="5"></Button> 
        <Button x:Name="butSave" Click="butSave_Click"  Grid.Row="4" Width="60" Content="Save" HorizontalAlignment="Right" Margin="5,5,70,5"></Button> 
    </Grid> 
</controls:RadWindow> 
 

The width on this one goes to more like 1000 rather than 500 which is what is set. If there you also have a RadGrid in a window then the window shrinks. If you then manually resize the window with the mouse all is good again.

3 Answers, 1 is accepted

Sort by
0
hwsoderlund
Top achievements
Rank 1
answered on 30 Nov 2009, 12:57 PM
I can confirm this bug. It looks like the width/height properties are completely ignored. The windows get their size from their content instead.
0
hwsoderlund
Top achievements
Rank 1
answered on 30 Nov 2009, 01:04 PM
As a sidenote, this bug appears to have been fixed in the Nov 27 build:
http://www.telerik.com/community/forums/silverlight/window/problem-with-radwindow-and-browser-zoom.aspx

Perhaps these issues are related somehow. Just a thought...



0
Miroslav Nedyalkov
Telerik team
answered on 30 Nov 2009, 02:11 PM
Hi All,

We fixed this issue and fix will be included in the next internal build. We apologize for the caused inconvenience.

All the best,
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
Paul
Top achievements
Rank 1
Answers by
hwsoderlund
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or