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

Gauge - Update Max/Min value

0 Answers 51 Views
Gauges
This is a migrated thread and some comments may be shown as answers.
Marcelo
Top achievements
Rank 1
Marcelo asked on 25 Mar 2013, 12:37 PM
Hi,

I'm using KendoUI Gauge with Knockout, and it works fine. But when the value is greater than the max value, I'd like to update the max value to my actual value.
I'm using this documentation  Kendo-Knockout
I build a simple demo to ilustrate: Example

How could I do something like that using Knockout?
Thanks.

EDITED:
Forget about that. I was trying to update a single property from my ScaleOptions object, but when I recreate the entire object, it works.

myViewModel.ScaleOptions().max = newValue;
myViewModel.ScaleOptions({
   min: 0,
   max: newValue,
   ranges: [{
      from: 0,
      to: 40
   }, {
      from: 40,
      to: 80
   }, {
      from: 80,
      to: newValue
   }]
});


No answers yet. Maybe you can help?

Tags
Gauges
Asked by
Marcelo
Top achievements
Rank 1
Share this question
or