Get value of model in gauge

2 posts, 1 answers
  1. Chili
    Chili avatar
    46 posts
    Member since:
    Aug 2018

    Posted 26 Oct 2018 Link to this post


    Since I do not want a static value in my gauge, I want to use some model value. By checking the documentation of the gauge, there is none example to bind it with a model. Is there any example to perform this in core?  

    Kind regards.

  2. Answer
    Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 31 Oct 2018 Link to this post

    Hello Chili,

    You can set the values of the Gauge directly from the ViewModel:
    @model int
        .Pointer(pointer => pointer.Value(Model))
        .Scale(scale => scale

    If the Gauge will be used within a template that will be evaluated on client-side and should be bound to a client model you could use the MVVM binding:
    Hope this helps.

    Konstantin Dikov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top