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

Retrieving configuration

4 Answers 61 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Deryk Robosson
Top achievements
Rank 1
Deryk Robosson asked on 03 Jul 2012, 01:55 AM
Is there a way of retrieving the configuration from a radial gauge? For example, a get function or similar property.

4 Answers, 1 is accepted

Sort by
0
Iliana Dyankova
Telerik team
answered on 04 Jul 2012, 09:20 AM
Hello Deryk,

I am not quite sure if I understand your scenario correctly. Could you please provide some more details about the exact functionality you are trying to implement? This way I would be able to provide a solution if such is possible of course. Thank you in advance.

Greetings,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Deryk Robosson
Top achievements
Rank 1
answered on 05 Jul 2012, 12:07 AM
My scenario is that I want to be able to retrieve a configuration object from a gauge (radial or linear). I feel that the initial request on that was fairly clear.

The extended information that is not really pertinent that may help you understand better is that I am using Visual WebGUI custom user controls to wrap a DataViz Radial Gauge and Linear Gauge JavaScript controls. Part of this process is to create configuration classes that mirror the Radial Gauge and Linear Gauge configurations. As such, I would like to utilize standard and known default values that the gauges use. Unfortunately, this information is not available to me in minified/obfuscated script.
0
Accepted
Iliana Dyankova
Telerik team
answered on 06 Jul 2012, 04:18 PM
Hi Deryk,

I am still not sure if I understand your scenario, but you could get the configuration options of the Kendo UI Gauge via the options. For example: 
var takeGauge = $("#gauge").data("kendoRadialGauge");
takeGauge.options.pointer.color = "#000";
takeGauge.redraw();

For convenience I prepared a small example which illustrates such approach in action. If this is not the case please provide more detailed information about the exact scenario you are trying to implement.
 
Kind regards,
Iliana Nikolova
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Deryk Robosson
Top achievements
Rank 1
answered on 09 Jul 2012, 06:45 AM
Not that I have looked at it yet, your code snippet indicates to me that the options property is an object that should contain the configuration. So that should give me what I am after if I instantiate a new gauge instance and let the gauge use its default configuration values that I should be able to now grab. This should be suitable for what I'm after. Thanks!
Tags
Gauges
Asked by
Deryk Robosson
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Deryk Robosson
Top achievements
Rank 1
Share this question
or