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
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