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

BulletGraph Example Not Working

2 Answers 93 Views
BulletGraph
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Barry
Top achievements
Rank 1
Barry asked on 27 Apr 2012, 07:26 PM
I'm trying to duplicate the bulletgraph example that I see on your demos, but when I copy the style for the bulletgraph it tells me that the property 'content' is not found on type 'FeaturedMeasurePresenter' and that 'Range' was not found in type 'ComparativeMeasuresContainer' and 'QualitiveScaleContainer' and 'QualitiveRangeContainer'....

I am using 2011.3.1220.1040 (can't upgrade any further).

I've tried messing with the references, but having no luck. I have Telerik.Windows.Controls, Telerik.Windows.Datavisualization... do I need something else?

2 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 02 May 2012, 10:03 AM
Hi Barry,

I suppose the problems you are having are caused by using a newer template for the bulletgraph with older binaries. If you want to style your bulletgraph to look like in this demo you can use this template:

<ControlTemplate x:Key="RadHorizontalBulletGraphStyle" TargetType="telerik:RadHorizontalBulletGraph">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="0">
            <Grid>
                <telerik:QualitativeRangeContainer ChildrenSource="{TemplateBinding QualitativeRanges}"/>
                <Grid>
                    <Grid.Resources>
                        <Style TargetType="telerik:BarItem">
                            <Setter Property="LengthPercent" Value="1" />
                        </Style>
                    </Grid.Resources>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="5*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>
                    <telerik:FeaturedMeasurePresenter Grid.Row="0" ChildrenSource="{TemplateBinding FeaturedMeasures}" Background="#FF333333" />
                    <telerik:ProjectedMeasurePresenter Grid.Row="1" Margin="0,1,0,0" ChildrenSource="{TemplateBinding ProjectedMeasures}" />
                </Grid>
                <telerik:ComparativeMeasuresContainer ChildrenSource="{TemplateBinding MergedComparativeMeasures}"/>
            </Grid>
        </Border>
        <telerik:QuantitativeScaleContainer Grid.Row="1" TextFormatString="{TemplateBinding TextFormatString}" Visibility="{TemplateBinding QuantitativeScaleVisibility}" Opacity="0.6" RenderTransformOrigin="0.5,0.5" >
            <telerik:QuantitativeScaleContainer.RenderTransform>
                <TranslateTransform Y="10"/>
            </telerik:QuantitativeScaleContainer.RenderTransform>
        </telerik:QuantitativeScaleContainer>
    </Grid>
</ControlTemplate>

Hope this helps!

Regards,
Yavor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Amura
Top achievements
Rank 1
answered on 26 May 2012, 05:18 PM
this is so true.
Tags
BulletGraph
Asked by
Barry
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Amura
Top achievements
Rank 1
Share this question
or