Kendo.Mvc.UI.Fluent.ProgressBarBuilder and progressWrapper

2 posts, 0 answers
  1. Morten
    Morten avatar
    267 posts
    Member since:
    Jul 2012

    Posted 12 Mar 2015 Link to this post

    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
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2159 posts

    Posted 12 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top