allValues

Allows setting or getting multiple Gauge values at once.

Parameters

values ArrayAn array of values to be set.

ReturnsArray An array of the Gauge pointer values will be returned if no parameter is passed.

Example - setting multiple values

Open In Dojo
<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: [{
        value: 20
    }, {
        value: 40
    }]
});

var gauge = $("#gauge").data("kendoLinearGauge");
gauge.allValues([60, 10]);
</script>

Example - retrieving all values

Open In Dojo
<div id="gauge"></div>
<script>
$("#gauge").kendoLinearGauge({
    pointer: [{
        value: 20
    }, {
        value: 40
    }]
});

var gauge = $("#gauge").data("kendoLinearGauge");
var allValues = gauge.allValues();
</script>
In this article