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

different Charts in FluidContentControl

6 Answers 68 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Steven Hillaert
Top achievements
Rank 1
Steven Hillaert asked on 26 Jul 2010, 01:02 PM
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

6 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 29 Jul 2010, 01:53 PM
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
0
Steven Hillaert
Top achievements
Rank 1
answered on 29 Jul 2010, 04:36 PM
Hi,

How can I send you my file?

Regards,
Steven Hillaert
0
Vlad
Telerik team
answered on 30 Jul 2010, 06:43 AM
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
0
Pierre
Top achievements
Rank 2
Iron
Iron
answered on 31 Jul 2010, 02:29 AM
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?
0
Steven Hillaert
Top achievements
Rank 1
answered on 02 Aug 2010, 09:32 AM
No solution but I opened a support ticket.


Steven Hillaert
0
Pierre
Top achievements
Rank 2
Iron
Iron
answered on 27 Sep 2010, 09:04 PM
Share solution?
Tags
Chart
Asked by
Steven Hillaert
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Steven Hillaert
Top achievements
Rank 1
Vlad
Telerik team
Pierre
Top achievements
Rank 2
Iron
Iron
Share this question
or