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

Defines the fluent API for configuring the Kendo UI CircularProgressBar

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class CircularProgressBarBuilder : WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>, IHtmlContent

Inheritance: objectHelperResultWidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>CircularProgressBarBuilder

Implements: IHtmlContent

Inherited Members WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ToComponent()WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.Expression(string)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.Explorer(ModelExplorer)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.Name(string)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.Deferred(bool)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.HtmlAttributes(object)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.HtmlAttributes(IDictionary<string, object>)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ScriptAttributes(object, bool)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ScriptAttributes(IDictionary<string, object>, bool)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.Render()WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ToHtmlString()WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.WriteTo(TextWriter, HtmlEncoder)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ToClientTemplate()WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.AsModule(bool)WidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ComponentWidgetBuilderBase<CircularProgressBar, CircularProgressBarBuilder>.ContainerHelperResult.WriteTo(TextWriter, HtmlEncoder)HelperResult.WriteActionobject.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

Initializes a new instance of the CircularProgressBarBuilder class.

C#
public CircularProgressBarBuilder(CircularProgressBar component)
Parameters:componentCircularProgressBar

Methods

If set to true the Circular ProgressBar will have its role attribute set to progressbar. It will also render its aria-valuemin, aria-valuemax, and aria-valuenow attributes.

C#
public CircularProgressBarBuilder AriaRole()
Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

If set to true the Circular ProgressBar will have its role attribute set to progressbar. It will also render its aria-valuemin, aria-valuemax, and aria-valuenow attributes.

C#
public CircularProgressBarBuilder AriaRole(bool value)
Parameters:valuebool

The value for AriaRole

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.AriaRole(true)
)

The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value

C#
public CircularProgressBarBuilder CenterTemplate(string value)
Parameters:valuestring

The value for CenterTemplate

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.CenterTemplate("&lt;span style='color: #: color #;'&gt;#= value == 100 ? \"&lt;span class='k-icon k-font-icon k-i-check'&gt;&lt;/span&gt;\" : value + '%' #&lt;/span&gt;")
)

The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value

C#
public CircularProgressBarBuilder CenterTemplate<TModel>(TemplateBuilder<TModel> template)
Parameters:templateTemplateBuilder<TModel>

A Template component that configures the centertemplate.

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value

C#
public CircularProgressBarBuilder CenterTemplateHandler(string templateHandler)
Parameters:templateHandlerstring

The handler that returs the template for CenterTemplate

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.CenterTemplateHandler("CenterTemplateHandler")
)

The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value

C#
public CircularProgressBarBuilder CenterTemplateId(string templateId)
Parameters:templateIdstring

The ID of the template element for CenterTemplate

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.CenterTemplateId("CenterTemplateId")
)

The template that will be displayed in the center of the progress bar. Template variables: * value - the value * color - the matching color for the value

C#
public CircularProgressBarBuilder CenterTemplateView(IHtmlContent templateView)
Parameters:templateViewIHtmlContent

The view that contains the template for CenterTemplate

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

The color of the value pointer. Accepts a valid CSS color string, including hex and rgb.

C#
public CircularProgressBarBuilder Color(string value)
Parameters:valuestring

The value for Color

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Color("green")
)

The color ranges of the value pointer. The pointer color will be set to the color from the range that contains the current value.

C#
public CircularProgressBarBuilder Colors(Action<CircularProgressBarColorFactory> configurator)
Parameters:configuratorAction<CircularProgressBarColorFactory>

The CircularProgressBarColorFactory for the colors setting.

Returns:

CircularProgressBarBuilder

Returns the current instance of CircularProgressBarBuilder .

A value indicating whether endloess loading is enabled

C#
public CircularProgressBarBuilder Indeterminate(bool value)
Parameters:valuebool

The value for Indeterminate

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Indeterminate(20)
)

The label that would be used as a aria-label for the Circular ProgressBar element. Will be applied only if ariaRole is set to true.

C#
public CircularProgressBarBuilder Label(string value)
Parameters:valuestring

The value for Label

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Label("label")
)

The ID of the element that will be used as a label of the Circular ProgressBar. Will be used as a value of the aria-labelledby attribute. Will be applied only if ariaRole is set to true.

C#
public CircularProgressBarBuilder LabelId(string value)
Parameters:valuestring

The value for LabelId

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.LabelId("LabelId")
)

The opacity of the value pointer.

C#
public CircularProgressBarBuilder Opacity(double value)
Parameters:valuedouble

The value for Opacity

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Opacity(20)
)

A value indicating how wide will the pointer be

C#
public CircularProgressBarBuilder PointerWidth(double value)
Parameters:valuedouble

The value for PointerWidth

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.PointerWidth(20)
)

The circularProgressBar 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 circularProgressBar 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 CircularProgressBarBuilder Theme(string value)
Parameters:valuestring

The value for Theme

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Theme("sylver")
)

A value indicating if transition animations should be played.

C#
public CircularProgressBarBuilder Transitions(bool value)
Parameters:valuebool

The value for Transitions

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Transitions(20)
)

The component value.

C#
public CircularProgressBarBuilder Value(double value)
Parameters:valuedouble

The value for Value

Returns:

CircularProgressBarBuilder

Returns the current CircularProgressBarBuilder instance.

Example:
C#
@(Html.Kendo().CircularProgressBar()
.Name("progressbar")
.Value(20)
)