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

gauge angle

3 Answers 57 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
kity
Top achievements
Rank 2
kity asked on 31 Jul 2014, 01:25 PM
How to get compass angle? Is there any function in Telerik library to call and return value?
See image for more info.

Must be OK with negative value too.

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 01 Aug 2014, 05:37 AM
Hi kity,

The "Compass" is just an example of the radial gauge usage. It is not a kind of ready-to-use compass control. It is on your own to handle value of the indicator as compass angle.


Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
kity
Top achievements
Rank 2
answered on 01 Aug 2014, 07:00 AM
// show real degree depending Min/Max Angel
double ActualValue;

why you just not add a new property for example actual value to show real angle?
You have all data and this is not any depending is this is compass or other custom buisness logic control.

<telerik:RadialScale StartAngle="270"
                                    SweepAngle="360"    
                                    Min="0" 
                                    Max="360"    />

Or may be this functionality is done? How to get actual angle from control?
For my compass example if Value is equal to 450, angel is 90 degree.

Or you can simply show fuction that set needle to 90 degree.

0
Andrey
Telerik team
answered on 01 Aug 2014, 08:14 AM
Hello kity,

We implemented our design so that the control uses values instead of degrees. In your particular case you can create a custom converter that will convert the degrees you set to actual value that will be valid for our control. As I already stated in my previous post the compass demo is just an example how this control can be used in a different scenario.

Regards,
Andrey Murzov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Gauges
Asked by
kity
Top achievements
Rank 2
Answers by
Andrey
Telerik team
kity
Top achievements
Rank 2
Share this question
or