Hello,
in my scenario i try to visualize the variance of a production cyle within a radgridview. For this i want to show a warning/error range.
When i bind the three QualitativeRange`s i get a exception "Sequence contains no elements". If i set instead of ZyklusOkBound a fixed value for example, no exceptions is thrown. But the two other values are not called from my Itemssource (i´ve checked that by setting a breakpoint on my getters). Instead of a message shows up in my console:
What is absolutely remarkable, if i bind ZyklusErrorBound or ZyklusWarningBound to FeaturedMeasure the value is retrieved..
Thanks in advance for your help.
in my scenario i try to visualize the variance of a production cyle within a radgridview. For this i want to show a warning/error range.
<
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;
}
}
When i bind the three QualitativeRange`s i get a exception "Sequence contains no elements". If i set instead of ZyklusOkBound a fixed value for example, no exceptions is thrown. But the two other values are not called from my Itemssource (i´ve checked that by setting a breakpoint on my getters). Instead of a message shows up in my console:
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'
)
What is absolutely remarkable, if i bind ZyklusErrorBound or ZyklusWarningBound to FeaturedMeasure the value is retrieved..
Thanks in advance for your help.