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

QualitativeRange binding doesn't work

3 Answers 106 Views
BulletGraph
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 22 May 2012, 08:31 PM
Hello,
I am attempting to use a RadVerticalBulletGraph but there is a problem with the QualitativeRange object.I am attempting to implement a BulletGraph in an MVVM pattern such that the ViewModel only needs to provide the Value while the Brush is specified within the XAML (via styling). So my requiements are:

1. QualitativeRange Brush defined in XAML
2. QualitativeRange Value bound to a property on the ViewModel

Unfortunately this appears to be impossible. All working examples I've been able to find either create the QualitativeRange objects in code behind (unacceptable due to the color being defined in code) or have the value and brush hard coded (also unacceptable due to the binding requirement).

If anyone is able to provide an example that meets my two requirements I would be extremely grateful to see it. Thanks,
Jason

3 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 22 May 2012, 08:50 PM
By binding the Value property using an ElementName binding to the parent control I was able to meet my requiements. Please fix this in the future.
<telerik:QualitativeRange Value="{Binding ElementName=ParentGrid,
Path=DataContext.CriticalTolerance}" Brush="{StaticResource CriticalColor}"
/>

0
Yavor
Telerik team
answered on 23 May 2012, 09:16 AM
Hello Jason,

Indeed currently the Qualitative ranges of the bulletgraph don't work well with bindings. We have addressed this issue and the fix will be available for the Q2 release that is due in a month.

Regards,
Yavor
the Telerik team

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

0
Jason
Top achievements
Rank 1
answered on 23 May 2012, 02:17 PM
Thanks Yavor,
I am very glad to hear this is being addressed.
Tags
BulletGraph
Asked by
Jason
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Yavor
Telerik team
Share this question
or