Gauge - Update Max/Min value

1 posts, 0 answers
  1. Marcelo
    Marcelo avatar
    28 posts
    Member since:
    Jul 2010

    Posted 25 Mar 2013 Link to this post


    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?

    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;
       min: 0,
       max: newValue,
       ranges: [{
          from: 0,
          to: 40
       }, {
          from: 40,
          to: 80
       }, {
          from: 80,
          to: newValue

Back to Top