New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Kendo UI LinearGauge component

Definition

Constructors

Initializes a new instance of the LinearGauge class.

C#
public LinearGauge(ViewContext viewContext)
Parameters:viewContextViewContext

Properties

The gauge area configuration options. This is the entire visible area of the gauge.

C#
public LinearGaugeGaugeAreaSettings GaugeArea { get; }

Pointer member.

C#
public LinearGaugePointer Pointer { get; set; }

Pointers member.

C#
public List<LinearGaugePointer> Pointers { get; set; }

Sets the preferred rendering engine. If it is not supported by the browser, the Gauge will switch to the first available mode.The supported values are: "svg" - renders the widget as inline SVG document, if available or "canvas" - renders the widget as a Canvas element, if available..

C#
public RenderingMode? RenderAs { get; set; }

Configures the scale.

C#
public LinearGaugeScaleSettings Scale { get; }

The gauge theme. With versions prior to R1 2023 this can be either the respective LESS theme from the list below or "sass". When set to "sass" the gauge will read the variables from the Sass-based themes.Note: Since Q2 2024 release, the default value for the theme property is "sass" instead of "default". It is recommended to use "sass" with version Q2 2024 or later.The supported values are: "sass"; "black"; "blueopal"; "bootstrap"; "default"; "highcontrast"; "metro"; "metroblack"; "moonlight"; "silver" or "uniform".

C#
public string Theme { get; set; }

A value indicating if transition animations should be played.

C#
public bool? Transitions { get; set; }

Methods

Serializes the component settings to a dictionary.

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

A dictionary of settings.

Overrides: WidgetBase.Serialize()

SerializeSettings method.

C#
protected override Dictionary<string, object> SerializeSettings()
Returns:

Dictionary<string, object>

Overrides: WidgetBase.SerializeSettings()

Writes the HTML content.

C#
protected override void WriteHtml(TextWriter writer)
Parameters:writerTextWriter

The text writer.

Overrides: WidgetBase.WriteHtml(TextWriter)

WriteInitializationScript method.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

Overrides: WidgetBase.WriteInitializationScript(TextWriter)