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

Definition

Constructors

Initializes a new instance of the ProgressBar class.

C#
public ProgressBar(ViewContext viewContext, IJavaScriptInitializer initializer)
Parameters:viewContextViewContext

The view context.

initializerIJavaScriptInitializer

The javascript initializer.

Properties

Defines the ProgressBar animation

C#
public ProgressBarAnimation Animation { get; }

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.

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

Gets or sets the number of chunks when the type of the Progressbar is set to "chunk"

C#
public int? ChunkCount { get; set; }

Gets or sets a value indicating whether the component is enabled

C#
public bool Enable { get; set; }
Property Value:

true if the component should be enabled, false otherwise; the default is true.

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

C#
public string Label { get; set; }

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.

C#
public string LabelId { get; set; }

Gets or sets the maximum value of the ProgressBar

C#
public double? Max { get; set; }

Gets or sets the minimum value of the ProgressBar

C#
public double? Min { get; set; }

Gets or sets the orientation of the ProgressBar

C#
public ProgressBarOrientation? Orientation { get; set; }

Specifies if the progress direction should be reversed

C#
public bool Reverse { get; set; }

Specifies if the progress status should be displayed

C#
public bool ShowStatus { get; set; }

Gets or sets the type of the ProgressBar

C#
public ProgressBarType? Type { get; set; }

Gets or sets the current value of the ProgressBar

C#
public object Value { get; set; }

Methods

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

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the ProgressBar HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The writer object.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script

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

The writer object.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)