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

ProgressBarBuilder

Properties

WriteAction - Func

Methods

Value(System.Double)

Sets the initial value of the ProgressBar

Parameters

value - System.Double

Number specifying the value

Example


            @( Html.Kendo().ProgressBar()
                .Name("progressBar")
                .Min(100)
                .Max(200)
                .Value(100)
            )

Value(System.Boolean)

Sets the initial value of the ProgressBar

Parameters

value - System.Boolean

Pass false to set indeterminate value

Example


            @( Html.Kendo().ProgressBar()
                .Name("progressBar")
                .Min(100)
                .Max(200)
                .Value(false)
            )

Animation(System.Action)

Configures the progress animation. Currently only the duration of the animation could be set.

Parameters

configurator - System.Action<ProgressBarAnimationSettingsBuilder>

The configurator for the animation setting.

Animation(System.Boolean)

Configures the progress animation. Currently only the duration of the animation could be set.

Parameters

enabled - System.Boolean

Enables or disables the animation option.

AriaRole(System.Boolean)

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

Parameters

value - System.Boolean

The value for AriaRole

AriaRole()

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

ChunkCount(System.Double)

Specifies the number of chunks.

Parameters

value - System.Double

The value for ChunkCount

Enable(System.Boolean)

If set to false the widget will be disabled. It will still allow changing the value. The widget is enabled by default.

Parameters

value - System.Boolean

The value for Enable

Label(System.String)

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

Parameters

value - System.String

The value for Label

LabelId(System.String)

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

Parameters

value - System.String

The value for LabelId

Max(System.Double)

The maximum value of the ProgressBar.

Parameters

value - System.Double

The value for Max

Min(System.Double)

The minimum value of the ProgressBar.

Parameters

value - System.Double

The value for Min

Reverse(System.Boolean)

Specifies if the progress direction will be reversed.

Parameters

value - System.Boolean

The value for Reverse

Reverse()

Specifies if the progress direction will be reversed.

ShowStatus(System.Boolean)

Specifies if the progress status will be shown.

Parameters

value - System.Boolean

The value for ShowStatus

Orientation(Kendo.Mvc.UI.ProgressBarOrientation)

Defines the orientation of the ProgressBar.

Parameters

value - ProgressBarOrientation

The value for Orientation

Type(Kendo.Mvc.UI.ProgressBarType)

Represents the supported progress types

Parameters

value - ProgressBarType

The value for Type

Events(System.Action)

Configures the client-side events.

Parameters

configurator - System.Action<ProgressBarEventBuilder>

The client events action.

Example


            @(Html.Kendo().ProgressBar()
                  .Name("ProgressBar")
                  .Events(events => events
                      .Change("onChange")
                  )
            )

ToComponent()

Returns the internal view component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

Render()

Renders the component in place.

ToHtmlString()

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean
In this article
Not finding the help you need?