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.
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
}]
});