LayoutCycleException with RadCharts

2 posts, 0 answers
  1. Victor
    Victor avatar
    2 posts
    Member since:
    Jan 2011

    Posted 27 Jan 2011 Link to this post


    We have an issue with RadTileView control which presents a set of RadCharts. Control is placed in the grid row and the rendering goes a bit outside of the row at the top and at the bottom. To deal with the bottom cut off 3-rd empty row was added to the layout grid and it seems to make exceptions appear more often.
    Sometimes we get an exception when control loads. Exception happens more often as number of charts grows, almost all of the time if number of charts in the ItemSource is more than 6.
    Is there any workaround? When could we expect this issue fixed? Exception snapshot is attached.
    We're using version 2010.3.1110.1040


    <Grid x:Name="LayoutRoot" Background="White">
                <RowDefinition Height="auto" />
                <RowDefinition Height="*" />
                <RowDefinition Height="40" />
                <telerik:BooleanToVisibilityConverter x:Key="boolenConverter" />
                <telerik:ContainerBindingCollection x:Key="bindings">
                    <telerik:ContainerBinding PropertyName="Visibility"
                                              Binding="{Binding IsVisible, Converter={StaticResource boolenConverter}, Mode=OneTime}" />
                    <telerik:ContainerBinding PropertyName="Position" Binding="{Binding Position, Mode=TwoWay}" />
                <DataTemplate x:Key="headerTemplate" telerik:ContainerBinding.ContainerBindings="{StaticResource bindings}">
                    <StackPanel Orientation="Horizontal">
                        <Button Content="x" Command="{Binding UnpinCommand}" Height="15" Width="15" >
                                <ToolTip Content="Remove the chart from dashboard" />
                <DataTemplate x:Key="contentTemplate">
                    <InternalControl:TrendChart BorderThickness="0" DataContext="{Binding TrendChart, Mode=OneTime}" />
            <TextBlock Text="There are no trend graphs currently available" FontSize="14" FontWeight="Bold" Foreground="Red"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Visibility="{Binding Path=IsEmpty, Mode=OneWay}"/>
            <telerik:RadTileView x:Name="DashboardTileView" Grid.Row="1"
                                 ItemTemplate="{StaticResource headerTemplate}"
                                 ContentTemplate="{StaticResource contentTemplate}"
                ItemsSource="{Binding Path=DashboardItemCollection, Mode=OneWay}" >
  2. Zarko
    Zarko avatar
    755 posts

    Posted 31 Jan 2011 Link to this post

    Hi Victor,

     There's a known issue with the RadChart and the RadTileView that appears when the tileview tries to set too small size to the chart.
     Possible work around is to set MinHeight and MinWidth (something like MinHeight="200" and MinWidth="300")to the container that holds your RadChart (e.g. Grid, Canvas, StackPanel).
    If you have further questions feel free to ask.

    All the best,
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  3. DevCraft R3 2016 release webinar banner
Back to Top