RadialGauge HtmlHelper Overview

The Telerik UI RadialGauge HtmlHelper for ASP.NET Core is a server-side wrapper for the Kendo UI RadialGauge widget.

The RadialGauge represents values on a circular arc.

Initializing the RadialGauge

The following example demonstrates how to Initializing the RadialGauge by using the RadialGauge HtmlHelper.

    @(Html.Kendo().RadialGauge()
          .Name("radialGauge") // The name of the RadialGauge is mandatory. It specifies the "id" attribute of the widget.
          .Scale(scale => scale
              .Min(0) // Set the min value of the RadialGauge.
              .Max(200) // Set the min value of the RadialGauge.
          )
          .Pointer(pointer => pointer
              .Value(10) // Set the value of the RadialGauge.
          )
    )

Referencing Existing Instances

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

    // Place the following after the RadialGauge for ASP.NET Core declaration.
    <script>
        $(function() {
            // The Name() of the RadialGauge is used to get its client-side instance.
            var gauge = $("#radialGauge").data("kendoRadialGauge");
        });
    </script>

See Also

In this article
Not finding the help you need? Improve this article