value
Gets or sets the value of the ProgressBar. It accepts a number, a string or false
as a parameter. Setting the value to false
will set the state of the ProgressBar to indeterminate. If no parameter is passed, it returns the underlying value.
Parameters
value Number
The value to be set.
Returns
Number
the value of the widget.
Example - getting the current ProgressBar value
<div id="progressbar"></div>
<script>
$("#progressbar").kendoProgressBar({
min: 10,
max: 20,
value: 15
});
$(function() {
var pb = $("#progressbar").data("kendoProgressBar");
alert("The current value is " + pb.value());
});
</script>
Example - setting the value of the ProgressBar
<div id="progressbar"></div>
<script>
$("#progressbar").kendoProgressBar({
min: 10,
max: 20,
value: 15
});
$(function() {
var pb = $("#progressbar").data("kendoProgressBar");
pb.value(20);
});
</script>