Typescript for gauge is missing the pointers property

4 posts, 0 answers
  1. Torben
    Torben avatar
    2 posts
    Member since:
    Jun 2014

    Posted 07 Sep 2015 Link to this post

    The pointers property is not part of the typescript definition: 

     

    gauge.pointers[0].value(100);

     

    Why not?

  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 08 Sep 2015 Link to this post

    Hello Torben,

    The pointers property is not exposed as a field in the Gauge configuration. If you would like to modify the Gauge pointers value you could use the value or allValues methods.

    Regards,
    Dimiter Madjarov
    Telerik
     
    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. Torben
    Torben avatar
    2 posts
    Member since:
    Jun 2014

    Posted 05 Nov 2015 in reply to Dimiter Madjarov Link to this post

    But you use the pointers property in the gauge example:

       $("#example .slider").each(function () {
                            $(this).kendoSlider({
                                min: 0,
                                max: 180,
                                showButtons: false,
                                change: function () {
                                    var id = this.element.attr("id");
                                    var pointerIndex = id.substr(id.length - 1);
                                    var gauge = $("#gauge").data("kendoRadialGauge");
                                    gauge.pointers[pointerIndex].value(this.value());
                                }
                            });
                        });

     

    Is that an error then?

  5. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2156 posts

    Posted 06 Nov 2015 Link to this post

    Hello Torben,

    Indeed this is a shorthand call for setting the value of the pointer. I will pass the suggestion for discussion to the developers team.

    I wish you a great weekend.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready