RadWindow chops off content at lower resolutions

8 posts, 0 answers
  1. Shane Woodward
    Shane Woodward avatar
    13 posts
    Member since:
    Jan 2010

    Posted 02 Feb 2011 Link to this post

    I am using a single statically declared RadWindow as a modal dialog, and i inject any one of several different controls into it. I have not specified any height or width on it, so that it resizes according to its content. This works great until the user drops down to a low resolution, i.e. 1024*768. At this resolution one control in particular starts to get chopped off - the control is 800px wide, but the RadWindow refuses to automatically size past approx 700px, which is approximately 3/4 of the physical screen width (at this point the physical width of the dialog on the screen is 240mm, the screen width is 330mm).

    On higher resolutions this problem doesn't occur, because 800px is less than the 3/4 screen width, so the RadWindow opens at its full width. Setting properties like IsRestricted has no effect, and a dynamically created RadWindow has exactly the same behavior has a statically declared one. Setting a width on the RadWindow is not an option as the various controls that can be injected are all different sizes and many of them don't have explicitly set widths either (so properties like ActualWidth are set to 0.0 and are effectively unusable).

    Is there a width limit placed on the RadWindow when there is no explicitly set width? Is there any way to avoid this behavior?

    Thanks for any feedback!
  2. Ben
    Ben avatar
    19 posts
    Member since:
    Aug 2010

    Posted 03 Feb 2011 Link to this post

    I'm having issues with content in my RadWindow getting cropped also.
  3. DevCraft banner
  4. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 08 Feb 2011 Link to this post

    Hello Everybody,

     We are aware of this problem - we decided to measure the window with a fixed size if it has no size specified to make it work in a close to the WPF Window manner. We will consider making this more intuitive.

    Currently you could set the Width and Height properties of the RadWindow control and try to synchronize them with the Width and Hight of your content or to set the MaxWidth and MaxHeight properties to a big enough values.

    Greetings,
    Miroslav Nedyalkov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  5. Ben
    Ben avatar
    19 posts
    Member since:
    Aug 2010

    Posted 18 Feb 2011 Link to this post

    Please note: just setting the RadWindow Height/Width to the Content's Height/Width will not work.  You will have to set the RadWindow Height to the Content's Height + 36 and the Width to the Content's Width + 16. to account for the RadWindow Border.
  6. JanwalkarPooja
    JanwalkarPooja avatar
    20 posts
    Member since:
    Jan 2013

    Posted 23 Oct 2013 Link to this post

    Hi Telerik,

    I am facing one issue regarding screen Resolution 1024.
    PFA of screenshot .
    In my project, five telerik controls getting overlap on each other after setting resolution on 1024*768.
    As in code <Grid Grid.Row="1" Margin="0,10" HorizontalAlignment="Stretch" >
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="250*" />
                                    <ColumnDefinition Width="250*" />
                                    <ColumnDefinition Width="250*" />
                                    <ColumnDefinition Width="250*" />
                                    <ColumnDefinition Width="250*" />
                                </Grid.ColumnDefinitions>                         
    I want it should behave as same as in resolution 1280*1024,for that please refer other screen shot of Resolution1268.
    Kindly provide me the solution of this issue.
    Looking forward your reply.

    Regards,
    Pooja
  7. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 25 Oct 2013 Link to this post

    Hi Pooja,

    Could you please give us some more code, especially concerning the RadWindow?  am afraid, this code is not enough to reproduce the issue. Ideally, if you could prepare a really simple project in which this can be observed, open a support ticket and attach it there, it will helps us resolve the issue in a timely manner.

    Thank you for your cooperation.

    Regards,
    Konstantina
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. JanwalkarPooja
    JanwalkarPooja avatar
    20 posts
    Member since:
    Jan 2013

    Posted 29 Oct 2013 Link to this post

    Hi Konstantina,

    Thanks for your quick respond.
    As I tried to apply Height =Auto and Min/Max Height .Still its not working it as per my requirement.
    Issue is RadWindow is getting cut in lower resolution 1024*768.
    And In Style of RadWindow there is minHeight=26 minWidth=100

    So How do i set the Height to resolve this issue.
    I want it should behave dynamically (as per resolution).

    Following is code :
    <telerik:RadWindow x:Class="View"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:bfx="clr-namespace:Bxf.Converters;assembly=Bxf"
    xmlns:csla="clr-namespace:Csla.Xaml;assembly=Csla.Xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:telerikHtml="clr-namespace:Telerik.Windows.Documents.FormatProviders.Html;assembly=Telerik.Windows.Documents.FormatProviders.Html"
    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
    x:Name="DWindow" Width="950" Height="750" d:DesignWidth="1024"
    ResizeMode="NoResize" mc:Ignorable="d" Style="{StaticResource RadWindowStyle1}">

    Please provide the solution.
    Looking forward your reply.

    Regards,
    Pooja

  9. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 31 Oct 2013 Link to this post

    Hello Pooja,

    I am still not able to reproduce the issue.
    Attached I am sending you a short video of my attempt and also the project I tested with. Please review them and let me know if I am missing something.

    Regards,
    Konstantina
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
DevCraft banner