Step Binding Problem !?

2 posts, 0 answers
  1. MB
    MB avatar
    3 posts
    Member since:
    Jun 2017

    Posted 20 Jul Link to this post

     <telerikGauges:RadRadialGauge.Axis>
       <telerikGauges:GaugeLinearAxis Maximum="{Binding Kpi,Converter={StaticResource MaxValueConverter}}" Minimum="0" Step="200" ShowLabels="True" FontSize="15" FontFamily="Calibri" />
    </telerikGauges:RadRadialGauge.Axis>

     

    Hello there,

    I have a problem with Telerik Gauge.

    In the above code, I want to do a Binding to the STEP section.

    Now I am solving this with binding context changed event, but sometimes I get wrong data. :(

     

    I want it to be as follows.

    <telerikGauges:RadRadialGauge.Axis>
       <telerikGauges:GaugeLinearAxis Maximum="{Binding Kpi,Converter={StaticResource MaxValueConverter}}" Minimum="0" Step="{Binding Kpi.Value}" ShowLabels="True" FontSize="15" FontFamily="Calibri" />
    </telerikGauges:RadRadialGauge.Axis>

     

    Docs are very weak. This is really upsetting.

     

    Thanks..

  2. Petar Marchev
    Admin
    Petar Marchev avatar
    996 posts

    Posted 25 Jul Link to this post

    Hi Mikrosel,

    We have tested binding propagation and in our tests all appears to be fine. I have attached a simple page that uses many of the Gauge's properties in a bound scenario, including the Step property of the axis:
    <telerikGauges:GaugeLinearAxis Minimum="{Binding Min}" Maximum="{Binding Max}" Step="{Binding Kpi.Value}" />

    In my test, both the main ViewModel and Kpi classes are public and the Kpi and Value properties are public. Make sure your classes and properties are public too. Do try to run the page and see if you get similar results.

    One simple thing you can do is to bind the Text of a Label to the Value of the Kpi so that you can see if the value is indeed what you expect. Is your Kpi class observable? If not, then may be this is a timing issue and the Binding is evaluated before the Value property is set.

    If you need further assistance, I will ask that you prepare a small page, or a project, that we can run and send it to us so that we can take a look at the set up.

    Regards,
    Petar Marchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top