Retrieving configuration

5 posts, 1 answers
  1. Deryk Robosson
    Deryk Robosson avatar
    1 posts
    Member since:
    Feb 2010

    Posted 02 Jul 2012 Link to this post

    Is there a way of retrieving the configuration from a radial gauge? For example, a get function or similar property.
  2. Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 04 Jul 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Deryk Robosson
    Deryk Robosson avatar
    1 posts
    Member since:
    Feb 2010

    Posted 04 Jul 2012 Link to this post

    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.
  5. Answer
    Iliana Nikolova
    Admin
    Iliana Nikolova avatar
    2593 posts

    Posted 06 Jul 2012 Link to this post

    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!
  6. Deryk Robosson
    Deryk Robosson avatar
    1 posts
    Member since:
    Feb 2010

    Posted 09 Jul 2012 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready