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

CircularProgressBarBuilder

Defines the fluent API for configuring the Kendo CircularProgressBar for ASP.NET MVC.

Methods

AriaRole(System.Boolean)

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.

Parameters

value - System.Boolean

The value that configures the ariarole.

CenterTemplate(System.String)

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

Parameters

value - System.String

The value that configures the centertemplate.

CenterTemplateId(System.String)

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

Parameters

value - System.String

The value that configures the centertemplate.

Color(System.String)

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

Parameters

value - System.String

The value that configures the color.

Colors(System.Action)

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

Parameters

configurator - System.Action<CircularProgressBarColorFactory>

The action that configures the colors.

Label(System.String)

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.

Parameters

value - System.String

The value that configures the label.

LabelId(System.String)

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.

Parameters

value - System.String

The value that configures the labelid.

Opacity(System.Double)

The opacity of the value pointer.

Parameters

value - System.Double

The value that configures the opacity.

Theme(System.String)

The gauge theme. This can be either a built-in theme or "sass". When set to "sass" the gauge will read the variables from the Sass-based themes.The supported values are: "sass" - special value, see notes; "black"; "blueopal"; "bootstrap"; "default"; "highcontrast"; "metro"; "metroblack"; "moonlight"; "silver" or "uniform".

Parameters

value - System.String

The value that configures the theme.

Transitions(System.Boolean)

A value indicating if transition animations should be played.

Parameters

value - System.Boolean

The value that configures the transitions.

Indeterminate(System.Boolean)

A value indicating whether endloess loading is enabled

Parameters

value - System.Boolean

The value that configures the indeterminate.

PointerWidth(System.Double)

A value indicating how wide will the pointer be

Parameters

value - System.Double

The value that configures the pointerwidth.

Value(System.Double)

The component value.

Parameters

value - System.Double

The value that configures the value.

ToComponent()

Returns the internal view component.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name of the component.

Example


            @(Html.Kendo().Grid<OrderViewModel>()
               .Name("grid")
               .Columns(columns =>
               {
                   columns.Bound(p => p.OrderID).Filterable(false);
                   columns.Bound(p => p.Freight);  
               })
               .DataSource(dataSource => dataSource
                   .Ajax()
                   .PageSize(20)
                   .Read(read => read.Action("Orders_Read", "Grid"))
               )
            )

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with Kendo.Mvc.UI.Fluent.WidgetFactory.DeferredScripts(System.Boolean)

Parameters

deferred - System.Boolean

ModelMetadata(System.Web.Mvc.ModelMetadata)

Uses the Metadata of the Model.

Parameters

modelMetadata - System.Web.Mvc.ModelMetadata

The metadata set for the Model

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

HtmlAttributes(System.Collections.Generic.IDictionary)

Parameters

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

Render()

Renders the component.

Example


            @(@Page Inherits="System.Web.Mvc.ViewPage<IEnumerable<Product>>" )
            @( Html.Kendo().Grid(Model)
                .Name("grid")
                .DetailTemplate(product => {
                    )
                       Product Details:
                       <div>Product Name: @( product.ProductName )</div>
                       <div>Units In Stock: @( product.UnitsInStock )</div>
                    @(
                })
                .Render();
            )

ToHtmlString()

ToClientTemplate()

In this article
Not finding the help you need?