My license version is 2018.2.620.45
I can't use RadHorizontalBulletGraph control even if I add reference Telerik.Windows.Controls.DataVisualization.
There is an error ''QualitativeRanges' property does not support the value of the 'QualitativeRange' format.'
I can't use that control even if drag and drop.
If i delete 'QualitativeRanges' property, I can't see that control.
So, what should i do?
Hi,
I'd like to know if it is possible to customize some aspects of the BulletGraph control:
1. When I set the value of Minimum property to a value higher than zero, an oval is shown instead of the bar for the FeaturedMeasure, is it possible to show the bar even when the Minimum property value is higher than zero?
2. Is it possible to hide the axis of values?
3. Is it possible to change the width of the FeaturedMeasure bar? I am using a RadVerticalBulletGraph.
Thanks,
Alberto Martinez
I would like to add some static text to the Comparative Measure element. I have re-templated the bullet graph, but my attempts to add the text does not seem to work. I would like the text to float at the top right of the line. Is this possible?
Here is my style template:
<
Style
x:Key
=
"RadHorizontalBulletGraphStyle"
TargetType
=
"telerik:RadHorizontalBulletGraph"
>
<
Setter
Property
=
"ComparativeMeasureThickness"
Value
=
"1"
/>
<
Setter
Property
=
"FontSize"
Value
=
"10"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
TargetType
=
"telerik:RadHorizontalBulletGraph"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"5*"
/>
<
RowDefinition
Height
=
"5*"
/>
</
Grid.RowDefinitions
>
<
Border
BorderBrush
=
"{TemplateBinding BorderBrush}"
BorderThickness
=
"{TemplateBinding BorderThickness}"
Background
=
"White"
Grid.Row
=
"0"
>
<
Grid
>
<
Grid
>
<
Grid.Resources
>
<
Style
TargetType
=
"telerik:BarItem"
>
<
Setter
Property
=
"LengthPercent"
Value
=
"1"
/>
</
Style
>
</
Grid.Resources
>
<
Grid.RowDefinitions
>
<
RowDefinition
Height
=
"5*"
/>
<
RowDefinition
Height
=
"5*"
/>
</
Grid.RowDefinitions
>
<
telerik:FeaturedMeasurePresenter
Grid.Row
=
"0"
Content
=
"{TemplateBinding FeaturedMeasureInternal}"
Margin
=
"0,5"
/>
<
telerik:FeaturedMeasurePresenter
Grid.Row
=
"1"
Content
=
"{TemplateBinding ProjectedMeasureInternal}"
Margin
=
"0,5"
/>
</
Grid
>
<
StackPanel
HorizontalAlignment
=
"Stretch"
>
<
telerik:ComparativeMeasuresContainer
ChildrenSource
=
"{TemplateBinding MergedComparativeMeasures}"
Range
=
"{TemplateBinding Range}"
Margin
=
"-15"
/>
</
StackPanel
>
</
Grid
>
</
Border
>
<
telerik:QuantitativeScaleContainer
Grid.Row
=
"1"
TextFormatString
=
"{TemplateBinding TextFormatString}"
Visibility
=
"{TemplateBinding QuantitativeScaleVisibility}"
Opacity
=
"0.5"
RenderTransformOrigin
=
"0.5,0.5"
Range
=
"{TemplateBinding Range}"
>
<
telerik:QuantitativeScaleContainer.RenderTransform
>
<
TranslateTransform
Y
=
"5"
/>
</
telerik:QuantitativeScaleContainer.RenderTransform
>
</
telerik:QuantitativeScaleContainer
>
</
Grid
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
<
SolidColorBrush
x:Key
=
"ActualBrush"
Color
=
"Green"
/>
<
SolidColorBrush
x:Key
=
"TargetBrush"
Color
=
"Red"
/>
And here is my control definition:
<
telerik:RadHorizontalBulletGraph
TextFormatString
=
"${0}"
ProjectedValue
=
"150"
FeaturedMeasure
=
"200"
ComparativeMeasure
=
"175"
Height
=
"100"
Style
=
"{StaticResource RadHorizontalBulletGraphStyle}"
FeaturedMeasureBrush
=
"{StaticResource ActualBrush}"
ProjectedValueBrush
=
"{StaticResource TargetBrush}"
Step
=
"200"
/>
<
DataTemplate
x:Key
=
"MachineTileLarge"
>
<
Grid
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
telerik:RadHorizontalBulletGraph
Grid.Row
=
"1"
Maximum
=
"100"
ComparativeMeasureBrush
=
"CornflowerBlue"
FeaturedMeasureBrush
=
"SeaGreen"
ComparativeMeasure
=
"32"
FeaturedMeasure
=
"75"
/>
</
Grid
>
</
DataTemplate
>
<
DataTemplate
x:Key
=
"MachineTemplate"
>
<
telerik:RadFluidContentControl
ContentChangeMode
=
"Manual"
TransitionDuration
=
"0:0:.5"
State
=
"{Binding State, Converter={StaticResource tileConverter}}"
SmallContentTemplate
=
"{StaticResource MachineTileSmall}"
ContentTemplate
=
"{StaticResource MachineTileNormal}"
LargeContentTemplate
=
"{StaticResource MachineTileLarge}"
/>
</
DataTemplate
>
<
Style
TargetType
=
"telerik:RadTileView"
>
<
Setter
Property
=
"PreservePositionWhenMaximized"
Value
=
"True"
/>
<
Setter
Property
=
"telerik:TileViewPanel.IsVirtualized"
Value
=
"True"
/>
<
Setter
Property
=
"IsAutoScrollingEnabled"
Value
=
"True"
/>
<
Setter
Property
=
"TileStateChangeTrigger"
Value
=
"SingleClick"
/>
<
Setter
Property
=
"MinimizedColumnWidth"
Value
=
"200"
/>
<
Setter
Property
=
"MinimizedRowHeight"
Value
=
"225"
/>
<
Setter
Property
=
"RowHeight"
Value
=
"330"
/>
<
Setter
Property
=
"ColumnWidth"
Value
=
"290"
/>
<
Setter
Property
=
"ContentTemplate"
Value
=
"{StaticResource MachineTemplate}"
/>
<
Setter
Property
=
"ItemTemplate"
Value
=
"{StaticResource MachineTileHeader}"
/>
</
Style
>
<
telerik:RadTileView
ItemsSource
=
"{Binding Path=MachineStatusItems}"
TileStateChanged
=
"tileView_TileStateChanged"
TileStateChangeTrigger
=
"SingleClick"
MaximizeMode
=
"ZeroOrOne"
IsItemDraggingEnabled
=
"True"
PreservePositionWhenMaximized
=
"True"
/>
<
telerik:RadHorizontalBulletGraph
Width
=
"150"
Height
=
"20"
QuantitativeScaleVisibility
=
"Collapsed"
FlowDirection
=
"LeftToRight"
FeaturedMeasure
=
"{Binding Input0TimeLast}"
ComparativeMeasure
=
"{Binding Auftrag.ZyklusIstSoll}"
>
<
telerik:RadHorizontalBulletGraph.QualitativeRanges
>
<
telerik:QualitativeRange
Brush
=
"Red"
Value
=
"{Binding ZyklusErrorBound}"
/>
<
telerik:QualitativeRange
Brush
=
"Yellow"
Value
=
"{Binding ZyklusWarningBound}"
/>
<
telerik:QualitativeRange
Brush
=
"Green"
Value
=
"{Binding ZyklusOkBound"
/>
</
telerik:RadHorizontalBulletGraph.QualitativeRanges
>
</
telerik:RadHorizontalBulletGraph
>
public
int
ZyklusErrorBound
{
get
{
var x =
this
.Auftrag.ZyklusIstSoll -
this
.Auftrag.ZyklusIstToleranz;
return
x;
}
}
public
int
ZyklusWarningBound
{
get
{
var x =
this
.Auftrag.ZyklusIstSoll - (
this
.Auftrag.ZyklusIstToleranz / 2);
return
x;
}
}
System.Windows.Data Error:
2
:
Cannot find govening FrameworkElement or FrameworkContentElement for
target element. BindingExpression:Path=ZyklusWarningBound;
DataItem=null; target element is
'QualitativeRange'
(HashCode=
7579691
); target property is
'Value'
(type
'Double'
)
System.Windows.Data Error:
2
: Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:Path=ZyklusErrorBound; DataItem=null; target element is
'QualitativeRange'
(HashCode=
7579691
); target property is
'Value'
(type
'Double'
)