QualitativeRange binding doesn't work

4 posts, 0 answers
  1. Jason
    Jason avatar
    19 posts
    Member since:
    Mar 2012

    Posted 22 May 2012 Link to this post

    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
  2. Jason
    Jason avatar
    19 posts
    Member since:
    Mar 2012

    Posted 22 May 2012 Link to this post

    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}"
    />

  3. UI for WPF is Visual Studio 2017 Ready
  4. Yavor
    Admin
    Yavor avatar
    401 posts

    Posted 23 May 2012 Link to this post

    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 >>

  5. Jason
    Jason avatar
    19 posts
    Member since:
    Mar 2012

    Posted 23 May 2012 Link to this post

    Thanks Yavor,
    I am very glad to hear this is being addressed.
Back to Top