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

Typescript for gauge is missing the pointers property

3 Answers 88 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Torben
Top achievements
Rank 1
Torben asked on 07 Sep 2015, 06:31 PM

The pointers property is not part of the typescript definition: 

 

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

 

Why not?

3 Answers, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 08 Sep 2015, 10:55 AM

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!
 
0
Torben
Top achievements
Rank 1
answered on 05 Nov 2015, 05:56 PM

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?

0
Dimiter Madjarov
Telerik team
answered on 06 Nov 2015, 08:11 AM

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!
 
Tags
Gauges
Asked by
Torben
Top achievements
Rank 1
Answers by
Dimiter Madjarov
Telerik team
Torben
Top achievements
Rank 1
Share this question
or