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

Step Binding Problem !?

1 Answer 74 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
MB
Top achievements
Rank 1
MB asked on 20 Jul 2017, 11:33 AM
 <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..

1 Answer, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 25 Jul 2017, 08:48 AM
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
Tags
Gauges
Asked by
MB
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Share this question
or