RadWindow not sizing as expected

4 posts, 0 answers
  1. Paul
    Paul avatar
    113 posts
    Member since:
    May 2009

    Posted 30 Nov 2009 Link to this post

    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.
  2. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 30 Nov 2009 Link to this post

    I can confirm this bug. It looks like the width/height properties are completely ignored. The windows get their size from their content instead.
  3. DevCraft banner
  4. hwsoderlund
    hwsoderlund avatar
    419 posts
    Member since:
    Aug 2006

    Posted 30 Nov 2009 Link to this post

    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...



  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 30 Nov 2009 Link to this post

    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.
Back to Top