different Charts in FluidContentControl

7 posts, 0 answers
  1. Steven Hillaert
    Steven Hillaert avatar
    18 posts
    Member since:
    May 2010

    Posted 26 Jul 2010 Link to this post

    Hi,

    I have a UserControl that contains a RadFluidContentControl, in this I want to define different charts for each content (small, normal, large). The problem is, once I define a my chart for the RadFluidContentControl.SmallContent, this is the only one that is shown. Maybe also important to mention, the UserControl is used in a TileView with 4 tiles.

    This is my XAML:

    <UserControl     
        x:Class="Elia.Wcs.Modules.Views.MeteringChart"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        
        xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"
        xmlns:telerikChart="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Charting"  
        xmlns:telerikCharting="clr-namespace:Telerik.Windows.Controls.Charting;assembly=Telerik.Windows.Controls.Charting"
        xmlns:telerikDragDrop="clr-namespace:Telerik.Windows.Controls.DragDrop;assembly=Telerik.Windows.Controls"
        
        mc:Ignorable="d"
        d:DesignHeight="300" d:DesignWidth="400"
        
        telerikDragDrop:RadDragAndDropManager.AllowDrop="True"
        >

        <telerik:RadFluidContentControl
                            SmallToNormalThreshold="190, 140"
                            NormalToSmallThreshold="189, 139"
                            NormalToLargeThreshold="320, 320"
                            LargeToNormalThreshold="319, 319">

            <telerik:RadFluidContentControl.SmallContent>
                <telerikChart:RadChart x:Name="RadChartSmall" UseDefaultLayout="False" >
                    <telerikCharting:ChartArea x:Name="ChartAreaSmall"
                                               EnableAnimations="False" NoDataString="Drop a counter here (small content)"       
                                               AdditionalYAxes="{Binding AdditionalYAxes}" >
                        <telerikCharting:ChartArea.AxisX>
                            <telerikCharting:AxisX AutoRange="True" TicksDistance="15" >
                            </telerikCharting:AxisX>
                        </telerikCharting:ChartArea.AxisX>
                    </telerikCharting:ChartArea>
                </telerikChart:RadChart>
                <!--<TextBlock Text="TILE 1 SMALL CONTENT"></TextBlock>-->
            </telerik:RadFluidContentControl.SmallContent>

            <telerik:RadFluidContentControl.Content>
                <TextBlock Text="TILE 1 CONTENT"></TextBlock>
            </telerik:RadFluidContentControl.Content>

            <telerik:RadFluidContentControl.LargeContent>
                <telerikChart:RadChart x:Name="RadChart1" UseDefaultLayout="False" >

                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="Auto" />
                        </Grid.ColumnDefinitions>

                        <telerikCharting:ChartTitle Content="{Binding Title}" Grid.Row="0" Grid.Column="0"/>

                        <telerikCharting:ChartArea x:Name="ChartArea1" Grid.Row="1" Grid.Column="0"
                                               LegendName="ChartLegend2" EnableAnimations="False" NoDataString="Drop a counter here (large content)"       
                                               AdditionalYAxes="{Binding AdditionalYAxes}"
                                               >
                            <telerikCharting:ChartArea.AxisX>
                                <telerikCharting:AxisX AutoRange="True" TicksDistance="15" >
                                </telerikCharting:AxisX>
                            </telerikCharting:ChartArea.AxisX>
                        </telerikCharting:ChartArea>

                        <telerikCharting:ChartLegend x:Name="ChartLegend2" Grid.Row="1" Grid.Column="1"/>

                    </Grid>
                </telerikChart:RadChart>

            </telerik:RadFluidContentControl.LargeContent>
        </telerik:RadFluidContentControl>
    </UserControl>


    What am I dong wrong?

    Thanks,
    Steven
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 29 Jul 2010 Link to this post

    Hi Steven Hillaert,

    I am looking in to your case, however, I can't reproduce the problem described. Would you please post a small runnable application which shows the problem so that we can advise you more accurately?

    Best wishes,
    Vladimir Milev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Steven Hillaert
    Steven Hillaert avatar
    18 posts
    Member since:
    May 2010

    Posted 29 Jul 2010 Link to this post

    Hi,

    How can I send you my file?

    Regards,
    Steven Hillaert
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Jul 2010 Link to this post

    Hi Steven,

     You can open support ticket. 

    Greetings,
    Vlad
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 30 Jul 2010 Link to this post

    I got the same problem here. But we do not use the small content in the RadFluidContentControl, only tne content (that have a bar chart) and the large content a radgrid. But if We change from normal to large the chart just resize himself and the grid never appear. If I put the chart in comment all work like expected.

    Do you find a solution to your problem?
  7. Steven Hillaert
    Steven Hillaert avatar
    18 posts
    Member since:
    May 2010

    Posted 02 Aug 2010 Link to this post

    No solution but I opened a support ticket.


    Steven Hillaert
  8. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 27 Sep 2010 Link to this post

    Share solution?
Back to Top
DevCraft banner