Edit this page

ArcGauge HtmlHelper Overview

The ArcGauge HtmlHelper extension is a server-side wrapper for the Kendo UI ArcGauge widget.

Configuration

Below are listed the steps for you to follow when configuring the Kendo UI ArcGauge.

  1. Make sure you followed all the steps from the introductory article on Telerik UI for ASP.NET MVC.

  2. Create a new action method which renders the view.

    Example
        public ActionResult Index()
        {
            return View();
        }
    
  3. Add the ArcGauge.

    Example
    
            @(Html.Kendo().ArcGauge()
                .Name("arcGauge") //The name of the AcrGauge is mandatory. It specifies the "id" attribute of the widget.
                .Value(65)
                .Scale(x => x.Min(0).Max(100))
                .CenterTemplate("#:value#%")
            )
    
    

Reference

Existing Instances

To reference an existing Kendo UI ArcGauge instance, use the jQuery.data() configuration option. Once a reference is established, use the ArcGauge API to control its behavior.

Example
    //Put this after your Kendo UI ArcGauge for ASP.NET MVC declaration.
    <script>
    $(function() {
        //Notice that the Name() of the ArcGauge is used to get its client-side instance.
        var gauge = $("#arcGauge").data("kendoArcGauge");
    });
    </script>

See Also