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

GaugeScaleBuilderBase

Properties

Scale - TScale

Methods

MinorTicks(System.Action)

Configures the minor ticks.

Parameters

configurator - System.Action<GaugeScaleTicksBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .MinorTicks(ticks => ticks
                               .Visible(false)
                           )
                       )
            )

MajorTicks(System.Action)

Configures the major ticks.

Parameters

configurator - System.Action<GaugeScaleTicksBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .MajorTicks(ticks => ticks
                               .Visible(false)
                           )
                       )
            )

Ranges(System.Action)

Defines the ranges items.

Parameters

configurator - System.Action<GaugeScaleRangesFactory>

The add action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                            .Ranges.Add()
                            .From(1)
                            .To(2)
                       )
            )

MajorUnit(System.Double)

Sets the scale major unit.

Parameters

majorUnit - System.Double

The major unit.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.MajorUnit(5))
            )

MinorUnit(System.Double)

Sets the scale minor unit.

Parameters

minorUnit - System.Double

The minor unit.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.MinorUnit(5))
            )

Min(System.Double)

Sets the scale min value.

Parameters

min - System.Double

The min.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.Min(-20))
            )

Max(System.Double)

Sets the scale max value.

Parameters

max - System.Double

The max.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.Max(20))
            )

Reverse(System.Boolean)

Sets the scale reverse.

Parameters

reverse - System.Boolean

The scale reverse.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => sclae.reverse(true))
            )

Line(System.Action)

Configures the major ticks.

Parameters

configurator - System.Action<GaugeLineBuilder>

The configuration action.

Example


            @( Html.Kendo().LinearGauge()
                       .Name("linearGauge")
                       .Scale(scale => scale
                           .Line(line => line
                               .Visible(false)
                           )
                       )
            )

In this article
Not finding the help you need?