This is a migrated thread and some comments may be shown as answers.

Kendo.Mvc.UI.Fluent.ProgressBarBuilder and progressWrapper

1 Answer 138 Views
ProgressBar
This is a migrated thread and some comments may be shown as answers.
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Morten asked on 12 Mar 2015, 02:05 PM
In razor I dynamically build some progress bars and would like to color the progress part of the bar dynamically.
Is this possible?

@foreach (var c in categories) {
@(Html.Kendo().ProgressBar()
.HtmlAttributes(new { @class = "page-progress-bar" })
.Name("cat-" + i)
.Type(ProgressBarType.Percent)
.Value(c.Pct)
)
}

javascript way: http://demos.telerik.com/kendo-ui/progressbar/customlabel
helper: http://docs.telerik.com/kendo-ui/api/aspnet-mvc/Kendo.Mvc.UI.Fluent/ProgressBarBuilder

1 Answer, 1 is accepted

Sort by
0
Dimiter Madjarov
Telerik team
answered on 12 Mar 2015, 03:20 PM

Hello Morten,

At the moment the progress color cannot be changed through the configuration. The linked demo is available in MVC too, but the logic for changing the color is basically the same and is executed in the change event handler.

Regards,
Dimiter Madjarov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
ProgressBar
Asked by
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Answers by
Dimiter Madjarov
Telerik team
Share this question
or