New to Telerik UI for ASP.NET MVC? Download free 30-day trial

Getting Started with the Radial Gauge

This tutorial explains how to set up a basic Telerik UI for ASP.NET MVC Radial Gauge and highlights the major steps in the configuration of the component.

You will initialize a Radial Gauge and configure its Scale, which is responsible for the visualization of the gauge. Then, you will handle the basic JavaScript keydown event to acknowledge when the user presses the Up or Down arrow keys and update the value of the Radial Gauge Pointer using its client-side reference.

Sample Telerik UI for ASP.NET MVC  Radial Gauge


To successfully complete the tutorial, you need a project that is already configured to use the Telerik UI for ASP.NET MVC components:

1. Prepare the CSHTML File

The first step is to add the required directives at the top of the .cshtml document:

  • To use the Telerik UI for ASP.NET MVC HtmlHelpers:

    @using Kendo.Mvc.UI

Optionally, you can structure the document by adding the desired HTML elements like headings, divs, and paragraphs. In this tutorial, you will also apply some styles to the gauge and its container.

        #gauge-container {
            width: 386px;
            height: 386px;
            text-align: center;
            margin: 20px auto 30px auto;

        #gauge {
            width: 350px;
            height: 300px;
            margin: 0 auto;
    <div id="example">

        <div id="gauge-container">
            <p>Modify the Temperature with the Up and Down Arrows of the Keyboard</p>
            <!-- Component Configuration -->

2. Initialize the Radial Gauge

Use the Radial Gauge HtmlHelper to add the component to a page:

  • The Name() configuration method is mandatory as its value is used for the id and the name attributes of the Radial Gauge element.
  • Utilize the .Pointer() method to set an initial value for the Radial Gauge.
    @using Kendo.Mvc.UI

        .Pointer(pointer => pointer.Value(65))

3. Configure the Radial Gauge

Configure the Scale configuration method of the Radial Gauge. It exposes the RadialGaugeSettingsBuilder which allows you to then set up the Min, Max, MajorTicks, MinorTicks, Labels and Reverse properties.

    @using Kendo.Mvc.UI

        .Pointer(pointer => pointer.Value(65))
        .Scale(x =>
            .MinorTicks(m => m.Visible(true))
            .Labels(l => l.Visible(true))

4. (Optional) Reference Existing Radial Gauge Instances

You can reference the Radial Gauge instances that you have created and build on top of their existing configuration:

  1. Use the id attribute of the component instance to establish a reference.

        $(document).ready( function (e) {
            var radialgaugeReference = $("#gauge").data("kendoRadialGauge"); // radialgaugeReference is a reference to the existing Radial Gauge instance of the helper.
  2. Use the Radial Gauge client-side API to control the behavior of the component. In this example, you will use the value method to change the value of the Radial Gauge when the user presses the ArrowUp or ArrowDown keyboard buttons.

            }else if(e.key=="ArrowDown"){
        function updateValue(number) {
            var gauge = $("#gauge").data("kendoRadialGauge");

Next Steps

See Also

In this article